3
0
Files
corteza/internal/rules/operations.go
2019-02-14 16:28:39 +01:00

25 lines
538 B
Go

package rules
type (
OperationGroup struct {
Title string `json:"title"`
Operations []Operation `json:"operations"`
}
Operation struct {
Key string `json:"key"`
Title string `json:"title"`
Subtitle string `json:"subtitle"`
// Enabled will show/hide the operation in administration
Enabled bool `json:"enabled"`
// The default value for managing operations on a role
//
// nil = unset (inherit),
// true = checked (allow),
// false = unchecked (deny)
Default Access `json:"default"`
}
)