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

@@ -45,7 +45,7 @@ type PageMutation {
publishStartDate: Date
tags: [String]!
title: String!
): PageResponse
): PageResponse @auth(requires: ["write:pages", "manage:pages", "manage:system"])
update(
id: Int!
@@ -60,11 +60,11 @@ type PageMutation {
publishStartDate: Date
tags: [String]
title: String
): PageResponse
): PageResponse @auth(requires: ["manage:pages", "manage:system"])
delete(
id: Int!
): DefaultResponse
): DefaultResponse @auth(requires: ["delete:pages", "manage:system"])
}
# -----------------------------------------------