mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
ui - allow App user to see their own info
This commit is contained in:
parent
4dcecde97a
commit
b81d66639b
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
Reference in a new issue