mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Reënable presence visibility permission checking now it's not used on redundant code paths
This commit is contained in:
parent
32fdf8efd6
commit
270d302834
@ -150,10 +150,6 @@ class PresenceHandler(BaseHandler):
|
|||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def is_presence_visible(self, observer_user, observed_user):
|
def is_presence_visible(self, observer_user, observed_user):
|
||||||
defer.returnValue(True)
|
|
||||||
# return
|
|
||||||
# FIXME (erikj): This code path absolutely kills the database.
|
|
||||||
|
|
||||||
assert(observed_user.is_mine)
|
assert(observed_user.is_mine)
|
||||||
|
|
||||||
if observer_user == observed_user:
|
if observer_user == observed_user:
|
||||||
|
@ -196,8 +196,6 @@ class PresenceStateTestCase(unittest.TestCase):
|
|||||||
SynapseError
|
SynapseError
|
||||||
)
|
)
|
||||||
|
|
||||||
test_get_disallowed_state.skip = "Presence permissions are disabled"
|
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def test_set_my_state(self):
|
def test_set_my_state(self):
|
||||||
mocked_set = self.datastore.set_presence_state
|
mocked_set = self.datastore.set_presence_state
|
||||||
|
Loading…
Reference in New Issue
Block a user