mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
parent
59d721fdbc
commit
72fc8b03c9
1 changed files with 4 additions and 6 deletions
|
|
@ -240,12 +240,10 @@ class Metadata
|
|||
|
||||
public function hasOneOfTheAllowedRoles(User $user)
|
||||
{
|
||||
foreach ($this->listAllowedRoles() as $roles) {
|
||||
foreach ($roles as $roleName) {
|
||||
foreach ($user->getRoles() as $role) {
|
||||
if ($role->getName() === $roleName) {
|
||||
return true;
|
||||
}
|
||||
foreach ($this->listAllowedRoles() as $roleName) {
|
||||
foreach ($user->getRoles() as $role) {
|
||||
if ($role->getName() === $roleName) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue