new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

admin/access-control

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Admin authentication requirement

Before performing any admin operations, the user must be authenticated with an admin account. An admin is any user assigned the `admin` role or any user whose ID is included in the `adminUserIds` option.

Default admin roles

By default, there are two roles: "admin" (users have full control over other users) and "user" (users have no control over other users). A user can have multiple roles, stored as comma-separated strings.

Default admin permissions

Two resources with default permissions: user ("create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "set-email", "get", "update"), session ("list", "revoke", "delete"). Users with admin role have full control over all resources and actions. Users with user role have no control over any actions.

Give your agent this brain