Expand description
Permission helpers for the admin plugin.
Structs§
- Role
Permissions - 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::rolesis unset. - user_
role - Create the built-in user role, which grants no admin permissions.