Skip to content

Commit 4dc2aed

Browse files
committed
Fix a permission bug
1 parent 81f7b3b commit 4dc2aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sd_source/SimpleDesk-AdminPermissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ function shd_admin_save_role()
403403
);
404404

405405
foreach ($context['membergroups'] as $group)
406-
if (!empty($_POST['group' . $group]))
406+
if (isset($_POST['group' . $group]))
407407
if (empty($role['groups'][$group])) // box is ticked but it's one we don't know about already
408408
$groups['add'][] = $group;
409409
else

0 commit comments

Comments
 (0)