Versions in this module Expand all Collapse all v0 v0.1.2 May 2, 2025 Changes in this version + const PermApprove + const PermAuthCross + const PermCount + const PermCreate + const PermDelete + const PermGet + const PermList + const PermPause + const PermReject + const PermRun + const PermSet + const PermUpdate + const PermView + var ErrNoPermissions = acl.ErrNoPermissions + func HasPermission(ctx context.Context, permissions ...string) bool + func HaveAccessApprove(ctx context.Context, obj any) bool + func HaveAccessCount(ctx context.Context, obj any) bool + func HaveAccessCreate(ctx context.Context, obj any) bool + func HaveAccessDelete(ctx context.Context, obj any) bool + func HaveAccessGet(ctx context.Context, obj any) bool + func HaveAccessList(ctx context.Context, obj any) bool + func HaveAccessPause(ctx context.Context, obj any) bool + func HaveAccessReject(ctx context.Context, obj any) bool + func HaveAccessRun(ctx context.Context, obj any) bool + func HaveAccessSet(ctx context.Context, obj any) bool + func HaveAccessUpdate(ctx context.Context, obj any) bool + func HaveAccessView(ctx context.Context, obj any) bool + func HaveAccountLink(ctx context.Context, obj any) bool + func HaveObjectPermissions(ctx context.Context, obj any, permissions ...string) bool + func HavePermissions(ctx context.Context, permissions ...string) bool + func InitModelPermissions(pm *permissions.Manager, models ...any) + func InitModelPermissionsWithCustomCheck(pm *permissions.Manager, customCheck checkFnk, models ...any) + func IsNoPermCheck(ctx context.Context) bool + func WithNoPermCheck(ctx context.Context) context.Context + type ACLError = acl.ACLError + type RBACType = acl.RBACType