Skip to content

Treat a user with the root role as admin whichever role /me lists first - #287

Merged
vsilent merged 1 commit into
devfrom
feature/me-roles
Oct 15, 2026
Merged

vsilent merged 1 commit into
devfrom
feature/me-roles

Conversation

@vsilent

@vsilent vsilent commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

/me reports one role in no fixed order; a user with creator and root could come out as creator and be refused admin routes. The User Service now also lists every role in roles; root among them is the role Casbin checks. A /me without roles behaves as before.

Claude-Session: https://claude.ai/code/session_012TKZy6f5shPzM9WLdswH6f

/me reports one role in no fixed order; a user with creator and root
could come out as creator and be refused admin routes. The User Service
now also lists every role in `roles`; root among them is the role
Casbin checks. A /me without `roles` behaves as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012TKZy6f5shPzM9WLdswH6f
@vsilent
vsilent merged commit ccb4563 into dev Oct 15, 2026
2 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants