Skip to content
Snippets Groups Projects
Commit 8c03cd0e authored by Jason Robinson's avatar Jason Robinson
Browse files

Simplify is_real_user_txn check to trust user_type is null if real user

parent 62fac9d9
No related branches found
No related tags found
No related merge requests found
......@@ -358,7 +358,7 @@ class RegistrationWorkerStore(SQLBaseStore):
retcol="user_type",
allow_none=True,
)
return True if res is None or res == "" else False
return res is None
def is_support_user_txn(self, txn, user_id):
res = self._simple_select_one_onecol_txn(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment