add(rbac): permissions struct for services
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user