-
Notifications
You must be signed in to change notification settings - Fork 0
permission_modify
root edited this page Aug 20, 2015
·
1 revision
Sometimes you want your reservations editable for a group of users without granting admin rights.
With the permission_modifiy attribute you can set for each event a group of users which is allowed to modify it.
- Open the reservation type of your choice in the eventtype-editor (right click on the event-type in the left tree, when admin)
- Add a new attribute with the key permission_modify .
- Make the attribute an category atrribute.
- Select the users-category as root type. Alternativly you can create a subcategory containing all the user groups you want to be selectable as event editors.
- Choose a group as default-value. Users who belong to this group can edit the event. (if not changed by the user who creates an event)
- If you don't want the user who creates the event to change the group, mark the attribute invisible.
- Save the reservation type.
- To grant editing rights to the users assign them to the appropriate user-groups or the default-group.
- When creating a new event the user can now change the group that can modify the event. If the admin selected not_visible the default group is used.
- Add and remove users to the user groups to reassing permissions to edit.
I added an example data.xml
- Added a group with the name can-edit-events-from-others
- Added a user test and put him into the group
- Editet default reservation-type, added permission_modify as attribute type category with root usergroups and default can-edit-events-from-others
- Created a new event with admin
- Logged on as test
- Switched of only_own_reservations
- editet test event