add: littleweb api + scopes
This commit is contained in:
parent
c4de17058b
commit
3fc0872867
9 changed files with 598 additions and 11 deletions
|
@ -70,6 +70,10 @@ pub enum AppScope {
|
|||
UserReadNotes,
|
||||
/// Read the user's layouts.
|
||||
UserReadLayouts,
|
||||
/// Read the user's domains.
|
||||
UserReadDomains,
|
||||
/// Read the user's services.
|
||||
UserReadServices,
|
||||
/// Create posts as the user.
|
||||
UserCreatePosts,
|
||||
/// Create messages as the user.
|
||||
|
@ -90,6 +94,10 @@ pub enum AppScope {
|
|||
UserCreateNotes,
|
||||
/// Create layouts on behalf of the user.
|
||||
UserCreateLayouts,
|
||||
/// Create domains on behalf of the user.
|
||||
UserCreateDomains,
|
||||
/// Create services on behalf of the user.
|
||||
UserCreateServices,
|
||||
/// Delete posts owned by the user.
|
||||
UserDeletePosts,
|
||||
/// Delete messages owned by the user.
|
||||
|
@ -126,6 +134,10 @@ pub enum AppScope {
|
|||
UserManageNotes,
|
||||
/// Manage the user's layouts.
|
||||
UserManageLayouts,
|
||||
/// Manage the user's domains.
|
||||
UserManageDomains,
|
||||
/// Manage the user's services.
|
||||
UserManageServices,
|
||||
/// Edit posts created by the user.
|
||||
UserEditPosts,
|
||||
/// Edit drafts created by the user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue