From 26dde244a1ef4247f6815023bbb08f41455da03b Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Wed, 23 Jul 2025 14:37:12 +0200 Subject: [PATCH] [web] Add admin permission `modify-user-name` (#27284) * Add capabilitiy `modify-user-name` * Check `modify-user-name` (backend) * Check `modify-user-name` (frontend) * Add `isAdmin: true` in UserAdminController.test.mjs * Disable the name inputs instead of hidding them, so admins can still see them * Update tests * Update services/web/modules/admin-panel/test/unit/src/UserAdminController.test.mjs Co-authored-by: Andrew Rumble --------- Co-authored-by: Andrew Rumble GitOrigin-RevId: 8731a57aaea8960606ecb4ecd5094eef4fb86f89 --- services/web/types/admin-capabilities.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/types/admin-capabilities.ts b/services/web/types/admin-capabilities.ts index efe93f66fe..97024017a1 100644 --- a/services/web/types/admin-capabilities.ts +++ b/services/web/types/admin-capabilities.ts @@ -1,6 +1,7 @@ export type AdminCapability = | 'clear-saml-data' | 'modify-user-email' + | 'modify-user-name' | 'view-project' export type AdminRole =