Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ else:
|
|
| 75 |
# Check role in orgs
|
| 76 |
orgs = user_info.get("orgs", [])
|
| 77 |
if orgs:
|
| 78 |
-
org = next((item for item in
|
| 79 |
|
| 80 |
if org:
|
| 81 |
role = org.get("roleInOrg")
|
|
|
|
| 75 |
# Check role in orgs
|
| 76 |
orgs = user_info.get("orgs", [])
|
| 77 |
if orgs:
|
| 78 |
+
org = next((item for item in orgs if item["name"] == "ai4tp-test"), None)
|
| 79 |
|
| 80 |
if org:
|
| 81 |
role = org.get("roleInOrg")
|