mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04: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",
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user