Finesse effective permissions

This commit is contained in:
snipe
2025-11-11 18:26:02 +00:00
parent 3aa046bfa7
commit 33e72f6183
15 changed files with 129 additions and 39 deletions
+3
View File
@@ -93,6 +93,9 @@ class Group extends SnipeModel
if (!is_integer($permission)) {
$permissions[$permission] = (int) $value;
if ($permission == 'superuser') {
break;
}
} else {
\Log::info('Weird data here - skipping it');
unset($permissions[$permission]);