mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 12:12:44 +00: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
@ -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 New Issue
Block a user