Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds light admin functionality for these modules: AdminNotificationEvent, AdminTemplate, AdminTemplateAttachment, AdminQueueTemplates, AdminAttachment.
Light admins can only change templates if they have full rw permission on all queues which are affected by the template. If they don't have full rw on all queues, they can only see them without having permission to change/delete them. If they don't have ro on any of the queues, they can't even see the template.
ToDo: I don't know how to add translations. Someone please add following strings (German translation on the right):
Template: AdminNotificationEvent
'No permission to edit this ticket notification.' = 'Sie haben keine Berechtigung, diese Ticket-Benachrichtigung zu bearbeiten.'
Template: AdminAttachment
'No permission to edit this attachment.' = 'Sie haben keine Berechtigung, diesen Anhang zu bearbeiten.'
Template: AdminTemplate
'No permission to edit this template.' = 'Sie haben keine Berechtigung, diese Vorlage zu bearbeiten.'
Configuration:
A light admin can be added to one of the above-listed modules by adding the group – in which the light admin is – to the "GroupRo" field in the frontend module registration. The field GroupRo isn't perfect and doesn't fit 100% but it offers out-of-the-box functionality for additional permission controlling. Could be replaced in the future with a self-explaining name.
Example:
Group/GroupRo: admin-light
Frontend::Module###Admin
Frontend::Navigation###Admin##a2enmod version in the installation directions #1-Framework
Group/GroupRo: admin-light
Frontend::NavigationModule###AdminNotificationEvent
Frontend::NavigationModule###AdminTemplate
Frontend::NavigationModule###AdminTemplateAttachment
Frontend::NavigationModule###AdminQueueTemplates
Frontend::NavigationModule###AdminAttachment
GroupRo: admin-light
Frontend::Module###AdminNotificationEvent
Frontend::Module###AdminTemplate
Frontend::Module###AdminTemplateAttachment
Frontend::Module###AdminQueueTemplates
Frontend::Module###AdminAttachment