Convention Privilege

Use these to set up a subset of privileges for volunteers and staff. You must have the everything ConventionPrivilege to access this. Convention Privileges are accessed via /api/conventionprivilege.

Properties

See "Object Properties" in Introduction for basic shared properties.

Complete details in ConventionPrivilegeProperties. It also has these extra read-only properties:

some

This will be set to 1 if the User has any of the privileges.

Related Objects

See "Related Objects" in Introduction for how to use them.

convention

The Convention this conventionprivilege belongs to.

User

THe User will be granted privileges.

Services

The services used to fetch and manipulate convention privileges.

Create Convention Privilege

 POST /api/conventionprivilege
Required Params
convention_id
user_id

Returns the same as a normal read.

Read Convention Privilege

 GET /api/conventionprivilege/xxx

Returns:

 {
   "id" : "xxx",
   "user_id" : "xxx",
   ...
 }

Update Convention Privilege

 PUT /api/conventionprivilege/xxx

Returns the same as a normal read.

Delete Convention Privilege

 DELETE /api/conventionprivilege/xxx

Returns:

 {
   "success" : 1
 }