mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
ce06ad412a
refs #3283, refs #2739, refs #3096 - Renames permissions which didn't follow bread - Adds permissions for notifications, mail and tags Still todo: - wire up the new permissions where they are needed - add permissions for roles
162 lines
4.0 KiB
JSON
162 lines
4.0 KiB
JSON
{
|
|
"permissions": {
|
|
"db": [
|
|
{
|
|
"name": "Export database",
|
|
"action_type": "exportContent"
|
|
},
|
|
{
|
|
"name": "Import database",
|
|
"action_type": "importContent"
|
|
},
|
|
{
|
|
"name": "Delete all content",
|
|
"action_type": "deleteAllContent"
|
|
}
|
|
],
|
|
"mail": [
|
|
{
|
|
"name": "Send mail",
|
|
"action_type": "send"
|
|
}
|
|
],
|
|
"notification": [
|
|
{
|
|
"name": "Browse notifications",
|
|
"action_type": "browse"
|
|
},
|
|
{
|
|
"name": "Add notifications",
|
|
"action_type": "add"
|
|
},
|
|
{
|
|
"name": "Delete notifications",
|
|
"action_type": "destroy"
|
|
}
|
|
],
|
|
"post": [
|
|
{
|
|
"name": "Browse posts",
|
|
"action_type": "browse"
|
|
},
|
|
{
|
|
"name": "Read posts",
|
|
"action_type": "read"
|
|
},
|
|
{
|
|
"name": "Edit posts",
|
|
"action_type": "edit"
|
|
},
|
|
{
|
|
"name": "Add posts",
|
|
"action_type": "add"
|
|
},
|
|
{
|
|
"name": "Delete posts",
|
|
"action_type": "destroy"
|
|
}
|
|
],
|
|
"setting": [
|
|
{
|
|
"name": "Browse settings",
|
|
"action_type": "browse"
|
|
},
|
|
{
|
|
"name": "Read settings",
|
|
"action_type": "read"
|
|
},
|
|
{
|
|
"name": "Edit settings",
|
|
"action_type": "edit"
|
|
}
|
|
],
|
|
"slug": [
|
|
{
|
|
"name": "Generate slugs",
|
|
"action_type": "generate"
|
|
}
|
|
],
|
|
"tag": [
|
|
{
|
|
"name": "Browse tags",
|
|
"action_type": "browse"
|
|
},
|
|
{
|
|
"name": "Read tags",
|
|
"action_type": "read"
|
|
},
|
|
{
|
|
"name": "Edit tags",
|
|
"action_type": "edit"
|
|
},
|
|
{
|
|
"name": "Add tags",
|
|
"action_type": "add"
|
|
},
|
|
{
|
|
"name": "Delete tags",
|
|
"action_type": "destroy"
|
|
}
|
|
],
|
|
"theme": [
|
|
{
|
|
"name": "Browse themes",
|
|
"action_type": "browse"
|
|
},
|
|
{
|
|
"name": "Edit themes",
|
|
"action_type": "edit"
|
|
}
|
|
],
|
|
"user": [
|
|
{
|
|
"name": "Browse users",
|
|
"action_type": "browse"
|
|
},
|
|
{
|
|
"name": "Read users",
|
|
"action_type": "read"
|
|
},
|
|
{
|
|
"name": "Edit users",
|
|
"action_type": "edit"
|
|
},
|
|
{
|
|
"name": "Add users",
|
|
"action_type": "add"
|
|
},
|
|
{
|
|
"name": "Delete users",
|
|
"action_type": "destroy"
|
|
}
|
|
]
|
|
},
|
|
"permissions_roles": {
|
|
"Administrator": {
|
|
"db": "all",
|
|
"mail": "all",
|
|
"notification": "all",
|
|
"post": "all",
|
|
"setting": "all",
|
|
"slug": "all",
|
|
"tag": "all",
|
|
"theme": "all",
|
|
"user": "all"
|
|
},
|
|
"Editor": {
|
|
"post": "all",
|
|
"setting": ["browse", "read"],
|
|
"slug": "all",
|
|
"tag": "all",
|
|
"user": "all"
|
|
|
|
},
|
|
"Author": {
|
|
"post": ["browse", "read", "add"],
|
|
"setting": ["browse", "read"],
|
|
"slug": "all",
|
|
"tag": ["browse", "read", "add"],
|
|
"user": ["browse", "read"]
|
|
}
|
|
}
|
|
} |