mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
static pages permission
This commit is contained in:
parent
8378e07bb8
commit
bd768088c2
2 changed files with 5 additions and 2 deletions
|
@ -40,6 +40,7 @@ defmodule PhilomenaWeb.Admin.UserView do
|
|||
def description("admin", "SiteNotice"), do: "Manage site notices"
|
||||
def description("admin", "Badge"), do: "Manage badges"
|
||||
def description("admin", "Advert"), do: "Manage ads"
|
||||
def description("admin", "StaticPage"), do: "Manage static pages"
|
||||
|
||||
def description(_name, _resource_type), do: "(unknown permission)"
|
||||
|
||||
|
@ -73,7 +74,8 @@ defmodule PhilomenaWeb.Admin.UserView do
|
|||
["admin", "Role"],
|
||||
["admin", "SiteNotice"],
|
||||
["admin", "Badge"],
|
||||
["admin", "Advert"]
|
||||
["admin", "Advert"],
|
||||
["admin", "StaticPage"]
|
||||
]
|
||||
end
|
||||
end
|
||||
|
|
|
@ -89,6 +89,7 @@
|
|||
{"name": "admin", "resource_type": "Role"},
|
||||
{"name": "batch_update", "resource_type": "Tag"},
|
||||
{"name": "moderator", "resource_type": "Topic"},
|
||||
{"name": "admin", "resource_type": "Advert"}
|
||||
{"name": "admin", "resource_type": "Advert"},
|
||||
{"name": "admin", "resource_type": "StaticPage"}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue