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/permissions

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

Has Permission API endpoint

POST /admin/has-permission. Parameters: userId (string, optional), role (string, optional, server-only), permission (Record<string, string[]>, optional - use this OR permissions), permissions (Record<string, string[]>, optional - use this OR permission). At least one of permission or permissions must be provided.

Check role permission function

Use authClient.admin.checkRolePermission() on the client side to verify whether a given role has specific permissions. This is a synchronous function that does not require await and does not check the currently logged-in user's permissions directly, but rather checks what permissions are assigned to a specified role.

Give your agent this brain