Repository navigation
fix(console): accept users/verified in custom permission roles - #14662
Conversation
The Add by role string dialog only accepted user:, team: and member: strings, so users/verified and users/unverified were rejected even though the server accepts them.
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
Extends the console's custom permission editor to accept the server's new dimension-based users/verified and users/unverified roles, so project admins can assign them like existing roles. Validation matches the exact strings only, and stored/exported values use the type/dimension form the backend already authorizes against.
Reviewed commit: 52e4a2b |
New ConsoleProject ID: Tip Appwrite has crossed the 50K GitHub stars milestone with hundreds of active contributors |
🟢 Tier S · Ready to merge
The permissions editor’s custom role-string validator accepts Latest changes: The newest commit replaces the regex for the two built-in role strings with direct string comparisons.
📂 Walkthrough · 1
✅ Fixed since the last review · 1
Reviewed the commits since |

What does this PR do?
The Add by role string dialog in the permissions editor only accepted
user:,team:andmember:strings, sousers/verifiedandusers/unverifiedwere rejected with a format error. The server accepts both, which is why setting them through the CLI worked.The validator now accepts
users/verifiedandusers/unverified.users:verifiedstays invalid, matching the server.Test Plan
Ran this branch's console against a local stack:
users/verifiedinto Add by role string on a table's Security tab: no format error, Add enabled.GET /v1/tablesdb/:databaseId/tables/:tableIdreturned$permissions: ["read(\"users/verified\")"].