Skip to content
root edited this page Aug 20, 2015 · 1 revision

Introduction

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.

How to enable

  • 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.

How to use

  • 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.

Example data.xml

I added an example data.xml

  1. Added a group with the name can-edit-events-from-others
  2. Added a user test and put him into the group
  3. Editet default reservation-type, added permission_modify as attribute type category with root usergroups and default can-edit-events-from-others
  4. Created a new event with admin
  5. Logged on as test
  6. Switched of only_own_reservations
  7. editet test event

Clone this wiki locally