We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5663e9 commit 09afb19Copy full SHA for 09afb19
business_objects/user.py
@@ -16,7 +16,7 @@ def get(user_id: str) -> User:
16
17
def get_user_cached_if_not_admin(user_id: str) -> Optional[User]:
18
user = get_user_cached(user_id)
19
- if user.email.endswith("@kern.ai") and user.verified:
+ if (user.email or "").endswith("@kern.ai") and user.verified:
20
# for admins this could result in two db requests shortly after each other
21
# but it's better than having the jumping users without the correct org id
22
return get(user_id)
0 commit comments