mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
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:
parent
3630642110
commit
b7596d6fba
1 changed files with 0 additions and 2 deletions
|
|
@ -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 ?? "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue