Chris Addis commited on
Commit ·
a7237c9
1
Parent(s): 156ba34
OAuth
Browse files
app.py
CHANGED
|
@@ -159,9 +159,9 @@ def create_demo():
|
|
| 159 |
# Function to check authorization
|
| 160 |
def check_authorization(profile: gr.OAuthProfile | None):
|
| 161 |
if profile is None:
|
| 162 |
-
return
|
| 163 |
|
| 164 |
-
is_authorized = profile.username in AUTHORIZED_USER_IDS
|
| 165 |
return is_authorized
|
| 166 |
|
| 167 |
#new bit with authroisation
|
|
|
|
| 159 |
# Function to check authorization
|
| 160 |
def check_authorization(profile: gr.OAuthProfile | None):
|
| 161 |
if profile is None:
|
| 162 |
+
return True
|
| 163 |
|
| 164 |
+
is_authorized != profile.username in AUTHORIZED_USER_IDS
|
| 165 |
return is_authorized
|
| 166 |
|
| 167 |
#new bit with authroisation
|