2
Permissions
Matthijs Iriks edited this page 2026-12-04 05:44:01 +01:00

Permissions

  • A super admin may do everything in the manager. Only php artisan manager:create-user makes one: no form sets it.
  • Everyone else may do what any of their groups allows. A group is a list of rights.
  • Groups are managed only by a super admin (groups.manage, not a right a group can hold).
  • Someone may hand out only the rights they have themselves, and may not change or delete an account that outranks them.
  • A right can need another right: a group that gets posts.publish gets posts.view and posts.write too.
  • Each right is its own Laravel gate. The package never uses Gate::before: it does not answer for abilities of the host app.
Module Right Allows
users accounts.manage Create, change and delete accounts, and put them in groups
media media.view See the library and pick files
media media.upload, media.edit, media.delete Upload; change name, description and focus point; delete (all need media.view)
posts posts.view See the posts, drafts included
posts posts.write Create drafts and change them
posts posts.publish Publish, schedule and unpublish; change posts that are live
posts posts.delete Delete posts (a live one only with publishing)
posts posts.labels Manage categories and tags
pages pages.edit Change the texts of the pages
reviews reviews.manage Manage the reviews
pages (see above) The fields of a page are saved by pages.edit
resources <list>.view, <list>.manage See and change a list the site defined in manager.resources
revisions revisions.view, revisions.restore See the history of a text; put an earlier version back (also needs the right to write that text)
manager manager.full, manager.switch Only with simple_view on: the whole manager, or a choice between simple and whole
audit audit.view See the audit log
audit audit.manage Ban addresses, lift bans, write notes, set the rules
statistics statistics.view See and download the statistics

Roles of the site

Groups are the default. A site that has roles of its own sets manager.permissions: mode is groups, host (the groups are ignored) or merge; roles maps a role name to rights (* is everything) and is read from the attribute role_attribute of the account, or a resolver class implements IriksIT\Manager\Contracts\PermissionResolver. Rights that do not exist are ignored; a super admin may always do everything.

Someone who may not publish saves drafts only, and cannot change or delete a post that is live or scheduled.