Let the roles of the host decide next to the groups
This commit is contained in:
1 parent
258c25efe1
commit
69ed8c742a
10 files changed
+185
-3
No files matched your search
@@ -195,6 +195,15 @@ return [
|
||||
'turnstile' => ['site_key' => env('MANAGER_TURNSTILE_SITE_KEY'), 'secret' => env('MANAGER_TURNSTILE_SECRET')],
|
||||
],
|
||||
|
||||
/*
|
||||
| Who may do what. `groups` (default): the groups of the package. A site that has roles of its own can say it itself:
|
||||
| `host` takes the permissions only from the site, `merge` adds them to what the groups give. The site's side is a
|
||||
| `resolver` class (IriksIT\Manager\Contracts\PermissionResolver), or, simpler, `roles` per role name (`*` is
|
||||
| everything) read from the attribute `role_attribute` of the account (a string, a list or a relation with a `name`).
|
||||
| 'roles' => ['editor' => ['posts.view', 'posts.write'], 'owner' => ['*']]. A super admin may always do everything.
|
||||
*/
|
||||
'permissions' => ['mode' => env('MANAGER_PERMISSIONS', 'groups'), 'resolver' => null, 'roles' => [], 'role_attribute' => 'role'],
|
||||
|
||||
/*
|
||||
| The menu. `items` changes what a module gives, by the route name without the prefix:
|
||||
| 'posts.index' => ['order' => 10, 'section' => 'Content', 'icon' => 'file', 'simple' => true, 'hidden' => false].
|
||||
|
||||
Reference in new issue
Block a user