setting: Add dropdown for managing who can move messages between streams.

This commit adds the dropdown in 'Stream settings' section of organization
permissions page to control who can move messages between streams and
also hides the stream-edit UI in message-edit form accordingly.

Fixes #14499.
This commit is contained in:
sahil839
2021-04-30 13:05:20 +05:30
committed by Tim Abbott
parent 6f4af26585
commit c7d4640af5
5 changed files with 20 additions and 1 deletions

View File

@@ -126,3 +126,7 @@ export function user_can_subscribe_other_users() {
export function user_can_create_streams() {
return user_has_permission(page_params.realm_create_stream_policy);
}
export function user_can_move_messages_between_streams() {
return user_has_permission(page_params.realm_move_messages_between_streams_policy);
}