refactor(ui): drop redundant comment on canListUsers role list

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-11 17:16:30 +00:00
parent 3630642110
commit b7596d6fba

View file

@ -28,8 +28,6 @@ export const isAdminRole = (role: string): boolean => {
return all_admin_roles.includes(role);
};
// /user/list admits proxy admins and org admins; the session role for the latter is the formatted
// "Org Admin", which all_admin_roles does not carry
const rolesAllowedToListUsers: string[] = [...all_admin_roles, "Org Admin"];
export const canListUsers = (role: string | null): boolean => rolesAllowedToListUsers.includes(role ?? "");