stream_settings: Improve stream_post_policy_values order, description.

In "stream_data.js/stream_post_policy_values", change, the object to match
the following order and description of these policies:

1. Everyone [Default]
2. Admins, moderators and full members
3. Admins and moderators
4. Admins only

This sorts from least to most restrictive.
This commit is contained in:
NerdyLucifer 2022-03-07 11:59:06 +05:30 committed by Tim Abbott
parent 681414caf1
commit 1eb1aa70ed
1 changed files with 8 additions and 8 deletions

View File

@ -142,21 +142,21 @@ export const stream_post_policy_values = {
// Stream.POST_POLICIES object in zerver/models.py.
everyone: {
code: 1,
description: $t({defaultMessage: "All stream members can post"}),
description: $t({defaultMessage: "Everyone"}),
},
admins: {
code: 2,
description: $t({defaultMessage: "Only organization administrators can post"}),
non_new_members: {
code: 3,
description: $t({defaultMessage: "Admins, moderators and full members"}),
},
moderators: {
code: 4,
description: $t({
defaultMessage: "Only organization administrators and moderators can post",
defaultMessage: "Admins and moderators",
}),
},
non_new_members: {
code: 3,
description: $t({defaultMessage: "Only organization full members can post"}),
admins: {
code: 2,
description: $t({defaultMessage: "Admins only"}),
},
};