Simplify is_real_user_txn check to trust user_type is null if real user

Signed-off-by: Jason Robinson <jasonr@matrix.org>
This commit is contained in:
Jason Robinson 2019-09-09 16:40:40 +03:00
parent 62fac9d969
commit 8c03cd0e5f

View File

@ -358,7 +358,7 @@ class RegistrationWorkerStore(SQLBaseStore):
retcol="user_type", retcol="user_type",
allow_none=True, 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): def is_support_user_txn(self, txn, user_id):
res = self._simple_select_one_onecol_txn( res = self._simple_select_one_onecol_txn(