Documentation ¶
Overview ¶
Package function implements a simple single-function based permission handler
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(userToCheck *user.EphemeralUser, requiredPermissions []string) (bool, error)
Handler implements permissions.Handler
func (Handler) IsAuthorised ¶
func (h Handler) IsAuthorised(userToCheck *user.EphemeralUser, requiredPermissions []string) (bool, error)
IsAuthorised implements permissions.Handler
Click to show internal directories.
Click to hide internal directories.