static pages permission

This commit is contained in:
Luna D 2020-03-03 14:29:14 -05:00
parent 8378e07bb8
commit bd768088c2
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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"}
]
}