-
Notifications
You must be signed in to change notification settings - Fork 11
Setup: Module Access by role
dante di domenico edited this page Jul 7, 2022
·
3 revisions
Module accesses can be customized per role(s), providing an AccessControl
configuration in config/app_local.php
(or in config/projects/<projectName>.php
if you use multi project configuration).
I.e.:
'AccessControl' => [
'manager' => [
'hidden' => ['objects'], // => managers won't see objects module and they won't be allowed to access to it
'readonly' => ['documents'], // => managers will access documents module in readonly mode
],
'guest' => [
'hidden' => ['users'], // => guests won't see users module and they won't be allowed to access to it
'readonly' => ['documents'], // => guests will access documents module in readonly mode
],
],