mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
RoleForm: Really only show that everything is allowed if *
is granted
fixes #4622
This commit is contained in:
parent
354099b4e2
commit
e2a51e75e5
@ -319,7 +319,7 @@ class RoleForm extends RepositoryForm
|
||||
'users' => $role->users,
|
||||
'groups' => $role->groups,
|
||||
'unrestricted' => $role->unrestricted,
|
||||
self::WILDCARD_NAME => (bool) preg_match('~(?<!/)\*~', $role->permissions)
|
||||
self::WILDCARD_NAME => (bool) preg_match('~(?>^|,)\*(?>$|,)~', $role->permissions)
|
||||
];
|
||||
|
||||
if (! empty($role->permissions) || ! empty($role->refusals)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user