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

@@ -18,7 +18,7 @@ type StorageQuery {
targets(
filter: String
orderBy: String
): [StorageTarget]
): [StorageTarget] @auth(requires: ["manage:system"])
}
# -----------------------------------------------
@@ -28,7 +28,7 @@ type StorageQuery {
type StorageMutation {
updateTargets(
targets: [StorageTargetInput]
): DefaultResponse
): DefaultResponse @auth(requires: ["manage:system"])
}
# -----------------------------------------------