Basic Media Manager Permissions
After installation, you will need to set up access controls to ensure your non-Superusers are able to use Media Manager.
During install, Media Manager creates two permissions:
- media-manager: Allows a non-Superuser to view and use Media Manager
- media-manager-settings: Allows a non-Superuser to edit Media Manager upload settings
Create a role (for example editor) and assign it at least the permission media-manager. Give your user the role with the permission media-manager. If you want that user to be able to change upload settings, you need to give their role the permission media-manager-settings. Make sure you understand the implications of this before assigning them such access.
Next, you will need to set up template-level permissions to complete access setup. Still in ProcessWire admin, head over to /setup/template/ and expand the group of templates tagged as mediamanager. You will find 6 templates:
Open each of these templates for editing.
For the template media-manager:
- In the Access Tab, make sure Yes is selected under managing view and edit access for pages using that template.
- Under the roles that can access pages using the template, in the row with the role you created above, tick view pages and edit pages.
- In the section about pages being searchable when user has no access, select Yes.
- Also select Yes under the setting to allow edit-related access to inherit to children.
- Hit save
Repeat steps 1, 2 and 5 above for the remaining 5 templates.
The user will now be able to user Media Manager.
There will be times when you need a bit more control on who can edit, publish, delete, upload etc, in Media Manager. For such cases, the following 5 permissions are available to you. Please note that if you need to use any of them you will need to first create that permission. Details on what each permission controls are covered in subsequent topics.