streams: Use can_subscribe_group setting for checking permission.

This commit adds code to use can_subscribe_group setting in webapp.

Fixes part of #33417.
This commit is contained in:
Sahil Batra
2025-02-24 20:14:11 +05:30
committed by Tim Abbott
parent 62478f900d
commit 166d9282b8
23 changed files with 244 additions and 27 deletions

View File

@@ -180,6 +180,8 @@ IGNORED_PHRASES = [
r"weeks",
# Used in "Who can subscribe others to this channel" label.
r"must be subscribed",
# Used in "Who can subscribe to this channel" label.
r"everyone except guests can subscribe to any public channel",
]
# Sort regexes in descending order of their lengths. As a result, the