New functionality for permission on modulebuilder
This commit is contained in:
parent
d15e1af966
commit
a480347738
@ -1995,8 +1995,8 @@ if ($dirins && GETPOST('action') == 'update_right' && GETPOST('modifyright')&& e
|
|||||||
$permsForObject =array();
|
$permsForObject =array();
|
||||||
|
|
||||||
$allObject = array();
|
$allObject = array();
|
||||||
|
$nbOfPermissions = count($permissions);
|
||||||
for ($i =0; $i<count($permissions); $i++) {
|
for ($i =0; $i<$nbOfPermissions; $i++) {
|
||||||
if ($permissions[$i][4] == $objectForPerms) {
|
if ($permissions[$i][4] == $objectForPerms) {
|
||||||
if (count($permsForObject) < 3) {
|
if (count($permsForObject) < 3) {
|
||||||
$permsForObject[] = $permissions[$i];
|
$permsForObject[] = $permissions[$i];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user