Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOwnBranchMiddleware ¶ added in v0.6.0
func IsOwnBranchMiddleware() gin.HandlerFunc
IsOwnBranchMiddleware ensures that the user is associated with the branch being accessed. It checks if the user's branch ID matches the branch ID provided in the request context.
func RoleMiddleware ¶ added in v0.3.0
func RoleMiddleware(requiredRole string) gin.HandlerFunc
RoleMiddleware ensures that the user has the specified role before allowing access.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.