Library Privilege

Use these to set up a subset of privileges for volunteers and staff. You must have the settings LibraryPrivilege to access this. Library Privileges are accessed via /api/libraryprivilege.

Properties

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

Complete details in LibraryPrivilegeProperties. 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.

library

The Library this libraryprivilege belongs to.

User

THe User will be granted privileges.

Services

The services used to fetch and manipulate library privileges.

Create Library Privilege

 POST /api/libraryprivilege
Required Params
library_id
user_id

Returns the same as a normal read.

Read Library Privilege

 GET /api/libraryprivilege/xxx

Returns:

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

Update Library Privilege

 PUT /api/libraryprivilege/xxx

Returns the same as a normal read.

Delete Library Privilege

 DELETE /api/libraryprivilege/xxx

Returns:

 {
   "success" : 1
 }