Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireAdmin ¶
func RequireAdmin(localMode bool, provider rbac.Provider) gin.HandlerFunc
RequireAdmin ensures the user is an admin. When localMode is true the check is unconditionally skipped.
func RequireWorkspaceAccess ¶
RequireWorkspaceAccess checks if user can access a workspace. When localMode is true the check is unconditionally skipped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.