From 98e490ce88e8d85d1215a67d13070c097a8d8d95 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Tue, 4 Dec 2018 14:09:11 +0100 Subject: [PATCH] add(rbac): permissions struct for services --- internal/rbac/operations.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/rbac/operations.go b/internal/rbac/operations.go index eec180d35..eaede8ae3 100644 --- a/internal/rbac/operations.go +++ b/internal/rbac/operations.go @@ -26,12 +26,14 @@ type ( OperationState string Permission struct { - // Resource (organisation, team, channel) + // Scope (organisation, team, channel) + Scope string `json:"scope"` + // Resource (org:1, team:123123, etc.) Resource string `json:"resource"` // Operation name (Operation.Key) Operation string `json:"operation"` // Operation state (inherit, allow, deny) - Value OperationState `json:"value"` + State OperationState `json:"state"` } )