Reënable presence visibility permission checking now it's not used on redundant code paths

paul/schema_breaking_changes
Paul "LeoNerd" Evans 2014-09-01 22:14:56 +01:00
parent 32fdf8efd6
commit 270d302834
2 changed files with 0 additions and 6 deletions

View File

@ -150,10 +150,6 @@ class PresenceHandler(BaseHandler):
@defer.inlineCallbacks
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)
if observer_user == observed_user:

View File

@ -196,8 +196,6 @@ class PresenceStateTestCase(unittest.TestCase):
SynapseError
)
test_get_disallowed_state.skip = "Presence permissions are disabled"
@defer.inlineCallbacks
def test_set_my_state(self):
mocked_set = self.datastore.set_presence_state