Quantcast
Channel: drupal.org - Site administrators
Viewing all articles
Browse latest Browse all 426

Reservations: Premissions

$
0
0

The Reservations API uses 4 levels of permission:

  • Permission to Create a Reservation
  • Permission to reserve nodes of from a specific content type
  • Permissions to Create reservations for another user
  • Permission to override the default validation rules for that user

Permissions are applied to Roles. If you aren't already famialr with Drupal's Role based permissions, please read Users, roles and permissions.

Before you can assign permissions to make Reservations and reserve nodes from specific content types to a Role, you need create the appropriate Roles you desire that will control who can make, edit, and administer reservations. Browse to People > Permissions > Roles ( . . ./admin/people/permissions/roles). You may want to set up roles such as 'Member', 'Field Certified', 'Edit Certified', 'Producer', etc.

Now choose which Drupal roles to include in the Reservations Permissions interface.
Go to . . ./admin/config/reservations/permissions and check off the roles you created above. This limits the Roles displayed by the Reservations Permissions module to only the Roles that apply to Reservations.

Now that you have the Roles created and have indicated which roles will be used, by Reservations, you need to grant at least one Role the permission to make a Reservation. Browse to People > Permissions and enable Create Own Reservation for those Roles.

Only local images are allowed.

Then match Drupal roles to Reservable Content Types
Go to . . ./admin/reservations/manage/permissions

You will see a list of all the reservable content types you created listed in rows, and you will see the roles you associated with reservations listed in columns.

How Do Reservations Permissions Really Work?
The Reservations API makes nodes in existing content types reservable. To do that, roles are granted the edit own and delete own permissions for each type they can reserve... but NOT create nodes of that type. The Reservations module creates the nodes for the user. The Reservations Permission module allows users who have permission to manage reservations to adjust those permissions for reservable content types without needing the full administer permissions. Permission to manage users is required to grant a role the permission to Create a Reservation. Users need BOTH the permission to create a Reservation AND to be able to reserve at least one Content Type. The Reservation Staff module simply moves the Author field up in the form, so when creating a reservation for another user the validation is checked for that user as if they were making the Reservation themselves.


Viewing all articles
Browse latest Browse all 426

Trending Articles