mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
ui - allow App user to see their own info
This commit is contained in:
parent
5870be9e03
commit
c06db6e926
1 changed files with 3 additions and 0 deletions
|
@ -296,6 +296,9 @@ export const userInfoCall = async (
|
|||
if (userRole == "App Owner" && userID) {
|
||||
url = `${url}?user_id=${userID}`;
|
||||
}
|
||||
if (userRole == "App User" && userID) {
|
||||
url = `${url}?user_id=${userID}`;
|
||||
}
|
||||
console.log("in userInfoCall viewAll=", viewAll);
|
||||
if (viewAll && page_size && (page != null) && (page != undefined)) {
|
||||
url = `${url}?view_all=true&page=${page}&page_size=${page_size}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue