mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
build(ui): fix admin viewer issue
This commit is contained in:
parent
d1f4c83c31
commit
034ca95a94
15 changed files with 88 additions and 20 deletions
|
@ -175,7 +175,7 @@ const UsagePage: React.FC<UsagePageProps> = ({
|
|||
* If user is App Owner - use the normal spend logs call
|
||||
*/
|
||||
console.log(`user role: ${userRole}`);
|
||||
if (userRole == "Admin") {
|
||||
if (userRole == "Admin" || userRole == "Admin Viewer") {
|
||||
const overall_spend = await adminSpendLogsCall(accessToken);
|
||||
setKeySpendData(overall_spend);
|
||||
const top_keys = await adminTopKeysCall(accessToken);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue