feat: group permissions

This commit is contained in:
Nicolas Giard
2018-10-14 17:38:39 -04:00
parent 74aa3d906b
commit c08b5ac837
19 changed files with 216 additions and 73 deletions

View File

@@ -15,8 +15,8 @@ extend type Mutation {
# -----------------------------------------------
type ThemingQuery {
themes: [ThemingTheme]
config: ThemingConfig
themes: [ThemingTheme] @auth(requires: ["manage:theme", "manage:system"])
config: ThemingConfig @auth(requires: ["manage:theme", "manage:system"])
}
# -----------------------------------------------
@@ -27,7 +27,7 @@ type ThemingMutation {
setConfig(
theme: String!
darkMode: Boolean!
): DefaultResponse
): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
}
# -----------------------------------------------