From 518efe9c5ccb65c1ac9c5169fa8c534936011963 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Sat, 23 Feb 2019 14:46:05 +0100 Subject: [PATCH] Update permission list Remove access from system and add grant to system and messaging --- system/service/validation.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/service/validation.go b/system/service/validation.go index c7f63da77..1e0e055f5 100644 --- a/system/service/validation.go +++ b/system/service/validation.go @@ -9,7 +9,7 @@ import ( var ( permissionList = map[string]map[string]bool{ "system": map[string]bool{ - "access": true, + "grant": true, "organisation.create": true, "role.create": true, }, @@ -24,6 +24,7 @@ var ( }, "messaging": map[string]bool{ "access": true, + "grant": true, "channel.public.create": true, "channel.private.create": true, "channel.direct.create": true, @@ -46,6 +47,7 @@ var ( }, "compose": map[string]bool{ "access": true, + "grant": true, "namespace.create": true, }, "compose:namespace": map[string]bool{