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"` } )