3
0

add(rbac): permissions struct for services

This commit is contained in:
Tit Petric
2018-12-04 14:09:11 +01:00
parent d9606440b7
commit 98e490ce88

View File

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