summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-07-18 20:52:21 +0100
committerDavid Baker <dave@matrix.org>2018-07-18 20:52:21 +0100
commit45d06c754a38b1dc8ed4daab7596c1600641b092 (patch)
treeaffecbac16bad9cfbf5b9736f90dcf6cd28271d5 /synapse/handlers
parentOops, didn't mean to commit that (diff)
downloadsynapse-45d06c754a38b1dc8ed4daab7596c1600641b092.tar.xz
Add hopefully enlightening comment
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/profile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py
index ec8197f92b..91418fb83e 100644
--- a/synapse/handlers/profile.py
+++ b/synapse/handlers/profile.py
@@ -252,7 +252,8 @@ class ProfileHandler(BaseHandler):
         Sets the 'active' flag on a user profile. If set to false, the user account is
         considered deactivated.
         Note that unlike set_displayname and set_avatar_url, this does *not* perform
-        authorization checks!
+        authorization checks! This is because the only place it's used currently is
+        in account deactivation where we've already done these checks anyway.
         """
         if len(self.hs.config.replicate_user_profiles_to) > 0:
             cur_batchnum = yield self.store.get_latest_profile_replication_batch_number()