mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
[Fix] UI - Stop forcing proxy_admin_viewer to the usage page on login
Removes the JWT-decode useEffect that overrode `?page=api-keys` to "usage" for Admin Viewer. Backend already allows /key/list and /key/info for this role.
This commit is contained in:
parent
56cba1729c
commit
167f1b6342
1 changed files with 0 additions and 3 deletions
|
|
@ -324,9 +324,6 @@ function CreateKeyPageContent() {
|
|||
if (decoded.user_role) {
|
||||
const formattedUserRole = formatUserRole(decoded.user_role);
|
||||
setUserRole(formattedUserRole);
|
||||
if (formattedUserRole == "Admin Viewer") {
|
||||
setPage("usage");
|
||||
}
|
||||
}
|
||||
|
||||
if (decoded.user_email) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue