stream: Only realm admins can change default channels.

This commit is contained in:
Shubham Padia
2024-12-04 06:33:57 +00:00
committed by Tim Abbott
parent 4bef1a510c
commit 0cc200e573
4 changed files with 33 additions and 3 deletions

View File

@@ -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.")