mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
stream: Only realm admins can change default channels.
This commit is contained in:
committed by
Tim Abbott
parent
4bef1a510c
commit
0cc200e573
@@ -743,3 +743,13 @@ class CannotAdministerChannelError(JsonableError):
|
||||
@override
|
||||
def msg_format() -> str:
|
||||
return _("You do not have permission to administer this channel.")
|
||||
|
||||
|
||||
class CannotManageDefaultChannelError(JsonableError):
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
@override
|
||||
def msg_format() -> str:
|
||||
return _("You do not have permission to change default channels.")
|
||||
|
||||
Reference in New Issue
Block a user