-
Notifications
You must be signed in to change notification settings - Fork 4
Description
cc: @apeisa @teppokoivula
Currently "edit access" covers these permissions:
- page-edit
- page-create (not in database, ultimately a page-edit check for us)
- page-add (not in database, ultimately a page-edit check for us)
- page-delete
- page-move
- page-sort
- page-clone & page-clone-tree
- used only when ProcessClonePage is installed
(And "view access" covers only page-view.)
But there are other page permissions as well - how should these be handled? One straightforward solution would be just to add these to the above list:
- page-template
- Changing template of a page.
- page-lock
- Locking/unlocking a page.
- page-publish
- Does not exists in stock install but kicks in once defined in global permission list.
My intuition says page-template and page-publish should be added to the list but page-lock could be left to be checked via roles. Then again, having anything more than plain page-edit should probably be configurable via module options (defaulting to the whole list).
Having said that, I'd be inclined to add all three to the list and implement a configuration option not to rule out any use case. Adding them all in at this stage also lets us pass this for now ;). Then later on an option and proper role iteration for those not in the list. (Can't just pass them through to template based access control as that would require defining things at least for home template and we don't want that.)