settings: Use can_add_subscribers_group instead of realm policy.

We are using `can_add_subscribers_group` instead of
`invite_to_stream_policy` to check whether a user can subscribe other
users.
We've removed `invite_to_stream_policy` from the frontend wherever
applicable.
This commit is contained in:
Shubham Padia
2025-01-13 20:03:37 +00:00
committed by Tim Abbott
parent 34ade0d9a2
commit 3bf87228a2
14 changed files with 70 additions and 211 deletions

View File

@@ -223,7 +223,6 @@ export function dispatch_normal_event(event) {
can_move_messages_between_channels_group: noop,
can_move_messages_between_topics_group: noop,
create_multiuse_invite_group: noop,
invite_to_stream_policy: noop,
default_code_block_language: noop,
default_language: noop,
description: noop,