Archived
1
0
Fork 0

app/library/Services.php: get role from authed user getType() method.

This commit is contained in:
Henrik Hautakoski 2018-12-29 01:04:59 +01:00
parent ca27834a56
commit 89e096c4fd
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -289,7 +289,8 @@ class Services extends DiDefault
$menu = new Menu($navigation);
$menu->setMenuClass(null);
if ($this->get('auth')->hasIdentity()) {
$menu->setAclRole(Acl::ROLE_USER);
$type = $this->get('auth')->getIdentity()->getType();
$menu->setAclRole($type);
} else {
$menu->setAclRole(Acl::ROLE_GUEST);
}