Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionLevel ¶
type PermissionLevel string
const ( SuperAdminRequired PermissionLevel = "super_admin" AdminRequired PermissionLevel = "admin" Unauthenticated PermissionLevel = "unauthenticated" AuthRequired PermissionLevel = "authenticated" )
each level responds to a set of web services/privilege that a role has access to
type PermissionLevels ¶
type PermissionLevels []PermissionLevel
func (PermissionLevels) Contains ¶
func (perms PermissionLevels) Contains(perm PermissionLevel) bool
whether or not a slice of permission levels contains certain permission
Click to show internal directories.
Click to hide internal directories.