Structs§
- NewPermissions
- A new set of permissions to assign to a document.
- Permissions
- Permissions set on a document.
- User
Permissions - Permissions of a user on a document.
Enums§
- Permission
Level - Levels of permission that a user can have on a document.
Functions§
- authenticate_
from_ request - Extracts an authenticated user from an HTTP request.
- authorize
- Verify that user is authorized to access a ref at a given permission level.
- is_
authorized - Is the user authorized to access a ref at a given permission level?
- max_
permission_ level - Gets the highest level of permissions allowed for a ref.
- permissions
- Gets the permissions allowed for a ref.
- ref_
exists 🔒 - Verify that the given ref exists.
- set_
permissions - Replaces the set of permissions for a ref.
- validate_
session - Returns an error if the user_id in the session does not exist in the DB, returns None otherwise