Skip to main content

Module access

Module access 

Source
Expand description

Permission helpers for the admin plugin.

Structs§

RolePermissions
Role-based permission grants for the admin plugin.

Constants§

DEFAULT_STATEMENTS
Built-in admin resources and actions, matching Better Auth’s defaultStatements.

Functions§

admin_role
Create the built-in admin role, ready to extend with RolePermissions::allow.
default_ac
Create application-side access control from DEFAULT_STATEMENTS.
default_roles
Create the built-in role map used when AdminConfig::roles is unset.
user_role
Create the built-in user role, which grants no admin permissions.