refac: debt on role backend
This commit is contained in:
1 parent
de142f6c5f
commit
a043f7f41a
130 files changed
+3591
-512
No files matched your search
@@ -18,15 +18,15 @@ func allGrants(include func(Permission) bool) []Grant {
|
||||
|
||||
func writerGrants() []Grant {
|
||||
return []Grant{
|
||||
{Key: "content.read", Scope: ScopeAll},
|
||||
{Key: "content.create", Scope: ScopeAll},
|
||||
{Key: "content.update", Scope: ScopeAll},
|
||||
{Key: "schema.view", Scope: ScopeAll},
|
||||
{Key: "media.view", Scope: ScopeAll},
|
||||
{Key: "media.upload", Scope: ScopeAll},
|
||||
{Key: "authors.view", Scope: ScopeAll},
|
||||
{Key: "authors.edit", Scope: ScopeOwn},
|
||||
{Key: "activity.view", Scope: ScopeOwn},
|
||||
{Key: KeyContentRead, Scope: ScopeAll},
|
||||
{Key: KeyContentCreate, Scope: ScopeAll},
|
||||
{Key: KeyContentUpdate, Scope: ScopeAll},
|
||||
{Key: KeySchemaView, Scope: ScopeAll},
|
||||
{Key: KeyMediaView, Scope: ScopeAll},
|
||||
{Key: KeyMediaUpload, Scope: ScopeAll},
|
||||
{Key: KeyAuthorsView, Scope: ScopeAll},
|
||||
{Key: KeyAuthorsEdit, Scope: ScopeOwn},
|
||||
{Key: KeyActivityView, Scope: ScopeOwn},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user