Documentation
¶
Index ¶
- func CheckAccountStatus(userId string, db *bun.DB) (bool, error)
- func CheckAdmin(userID uuid.UUID, db *bun.DB) (bool, error)
- func CheckEditorOrAdmin(userID uuid.UUID, db *bun.DB) (bool, error)
- func CheckRequestUserProjectModifyRole(projectID string, context *gin.Context, db *bun.DB) (bool, error)
- func CheckSelfServicePageAccess(projectID string, context *gin.Context, db *bun.DB) (bool, error)
- func CheckSelfServicePageManageAccess(projectID string, context *gin.Context, db *bun.DB) (bool, error)
- func CheckUserProjectAccess(projectID string, context *gin.Context, db *bun.DB) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSelfServicePageAccess ¶
CheckSelfServicePageAccess returns true if the current user can view/use the page. Any project member (Owner, Editor, Viewer) has access. Admins always have access. Returns false, nil when the user simply lacks membership (not an error).
func CheckSelfServicePageManageAccess ¶
func CheckSelfServicePageManageAccess(projectID string, context *gin.Context, db *bun.DB) (bool, error)
CheckSelfServicePageManageAccess returns true if the current user can create/edit/delete pages. Requires admin or editor global role, OR project Owner/Editor membership.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.