mirror of https://github.com/zulip/zulip.git
stream-policy: Update everyone policy for stream to channel rename.
In zerver/models/streams.py, updates translated string for when everyone can post to a stream/channel to use channel instead of stream. Part of stream to channel rename project.
This commit is contained in:
parent
eb9a142a9e
commit
9aaddc6231
|
@ -90,7 +90,7 @@ class Stream(models.Model):
|
|||
POST_POLICIES: Dict[int, StrPromise] = {
|
||||
# These strings should match the strings in the
|
||||
# stream_post_policy_values object in stream_data.js.
|
||||
STREAM_POST_POLICY_EVERYONE: gettext_lazy("All stream members can post"),
|
||||
STREAM_POST_POLICY_EVERYONE: gettext_lazy("All channel members can post"),
|
||||
STREAM_POST_POLICY_ADMINS: gettext_lazy("Only organization administrators can post"),
|
||||
STREAM_POST_POLICY_MODERATORS: gettext_lazy(
|
||||
"Only organization administrators and moderators can post"
|
||||
|
|
|
@ -1986,7 +1986,7 @@ class StreamAdminTest(ZulipTestCase):
|
|||
expected_notification = (
|
||||
f"@_**{user_profile.full_name}|{user_profile.id}** changed the "
|
||||
"[posting permissions](/help/stream-sending-policy) for this channel:\n\n"
|
||||
"* **Old permissions**: All stream members can post.\n"
|
||||
"* **Old permissions**: All channel members can post.\n"
|
||||
"* **New permissions**: Only organization administrators can post."
|
||||
)
|
||||
self.assertEqual(messages[-1].content, expected_notification)
|
||||
|
|
Loading…
Reference in New Issue