models: Rename is_api_super_user to can_forge_sender,

This commit is contained in:
Mateusz Mandera
2020-12-20 14:21:42 +01:00
committed by Tim Abbott
parent 2fa33be683
commit d0dc04a093
13 changed files with 64 additions and 46 deletions

View File

@@ -205,10 +205,10 @@ def access_stream_for_send_message(sender: UserProfile,
# It is private, but your are subscribed
return
if sender.is_api_super_user:
if sender.can_forge_sender:
return
if (forwarder_user_profile is not None and forwarder_user_profile.is_api_super_user):
if (forwarder_user_profile is not None and forwarder_user_profile.can_forge_sender):
return
if sender.is_bot and (sender.bot_owner is not None and