middleware

package
v0.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func RequireWorkspaceAccess(action string, localMode bool, provider rbac.Provider) gin.HandlerFunc

RequireWorkspaceAccess checks if user can access a workspace. When localMode is true the check is unconditionally skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL