Skip to content

Commit 173ff08

Browse files
race
1 parent 3d36267 commit 173ff08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def _handle_userinfo_request(request, oidc=False):
229229
# adding data rights for specific users for rubin - test
230230
logger.debug(f"userinfo: {userinfo}")
231231
username = userinfo.get('username')
232-
if oidc and username in ["cgarcia", "mpackard", "kprice", "jstubbs"]:
232+
if oidc and username and username in ["cgarcia", "mpackard", "kprice", "jstubbs"]:
233233
data_rights = get_user_data_rights(username)
234234
if data_rights:
235235
userinfo["data_rights"] = " ".join(data_rights)

0 commit comments

Comments
 (0)