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:
parent
62fac9d969
commit
8c03cd0e5f
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue