FIX Can't remove a permission of a group
This commit is contained in:
parent
5d717113be
commit
fca3980dce
@ -315,7 +315,7 @@ if ($object->id > 0) {
|
|||||||
if (in_array($obj->id, $permsgroupbyentity[$entity])) {
|
if (in_array($obj->id, $permsgroupbyentity[$entity])) {
|
||||||
// Own permission by group
|
// Own permission by group
|
||||||
if ($caneditperms) {
|
if ($caneditperms) {
|
||||||
print '<td class="center"><a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delrights&entity='.$entity.'&rights='.$obj->id.'">';
|
print '<td class="center"><a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delrights&entity='.$entity.'&rights='.$obj->id.'&token='.newToken().'">';
|
||||||
//print img_edit_remove($langs->trans("Remove"));
|
//print img_edit_remove($langs->trans("Remove"));
|
||||||
print img_picto($langs->trans("Remove"), 'switch_on');
|
print img_picto($langs->trans("Remove"), 'switch_on');
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user