0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-14 14:01:59 +01:00

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",
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(