mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
models: Rename is_api_super_user to can_forge_sender,
This commit is contained in:
committed by
Tim Abbott
parent
2fa33be683
commit
d0dc04a093
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user