[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 <andrew.rumble@overleaf.com>

---------

Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com>
GitOrigin-RevId: 8731a57aaea8960606ecb4ecd5094eef4fb86f89
This commit is contained in:
Antoine Clausse
2025-07-23 14:37:12 +02:00
committed by Copybot
parent e7eb7d32c5
commit 26dde244a1
+1
View File
@@ -1,6 +1,7 @@
export type AdminCapability =
| 'clear-saml-data'
| 'modify-user-email'
| 'modify-user-name'
| 'view-project'
export type AdminRole =