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
@@ -112,6 +112,12 @@ php artisan manager:create-user # the only way to make a super admin
|
||||
- `groups.manage` is a gate for super admins only, not a permission of a group.
|
||||
- The package defines one gate per permission and **no `Gate::before`**: it never answers for the
|
||||
abilities of your own app.
|
||||
- **A site with roles of its own** (decided in 0.5.0: groups stay the default, the site's roles are added next to them).
|
||||
`manager.permissions.mode` is `groups` (default), `host` (the groups are ignored) or `merge` (both). The site says what a role may do
|
||||
with `roles` (`['editor' => ['posts.view', 'posts.write'], 'owner' => ['*']]`, read from the attribute `role_attribute`: a string, a
|
||||
list or a relation with a `name`) or with a `resolver` class that implements `IriksIT\Manager\Contracts\PermissionResolver`. Values
|
||||
that are no permission of an active module are ignored and what a permission needs is added. A super admin may always do everything.
|
||||
The group screens still work in `host` mode but give nothing.
|
||||
- The migration adds `is_super_admin` to your users table (the table of `manager.user_model`). It
|
||||
promotes nobody.
|
||||
|
||||
|
||||
Reference in new issue
Block a user