Documentation ¶
Index ¶
- type Roles
- func (r Roles) Check(permissions []model.Permissions, privilege string, on *model.Entities) bool
- func (r Roles) CheckIfExists(roleID model.Identifier) (bool, *model.Role)
- func (r Roles) CreateRole(roleID model.Identifier, allowed []string, denied []string) *er.WdbError
- func (r Roles) ListRoles() Roles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Roles ¶
type Roles map[model.Identifier]*model.Role
func (Roles) CheckIfExists ¶
func (Roles) CreateRole ¶
Click to show internal directories.
Click to hide internal directories.