Fix: When you add a right ended in 0, add all module rights
This commit is contained in:
parent
b70c695776
commit
bb9862d6be
@ -3,6 +3,7 @@
|
|||||||
* Copyright (c) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (c) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (c) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (c) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2012 Florian Henry <florian.henry@open-concept.pro>
|
* Copyright (C) 2012 Florian Henry <florian.henry@open-concept.pro>
|
||||||
|
* Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -285,7 +286,7 @@ class UserGroup extends CommonObject
|
|||||||
|
|
||||||
// Pour compatibilite, si lowid = 0, on est en mode ajout de tout
|
// Pour compatibilite, si lowid = 0, on est en mode ajout de tout
|
||||||
// TODO A virer quand sera gere par l'appelant
|
// TODO A virer quand sera gere par l'appelant
|
||||||
if (substr($rid,-1,1) == 0) $whereforadd="module='$module'";
|
//if (substr($rid,-1,1) == 0) $whereforadd="module='$module'";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Where pour la liste des droits a ajouter
|
// Where pour la liste des droits a ajouter
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user