25 lines
538 B
Go
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"`
|
|
}
|
|
)
|