Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role string
Role contains a list of permissions
func (Role) HasPermission ¶
func (r Role) HasPermission(permission permission.Permission) bool
HasPermission checks whether a role grants the requested permission.
Click to show internal directories.
Click to hide internal directories.