Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict posting messages on streams having moderators/admins only #1149

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Jun 7, 2022

  1. model/boxes/test_model: Restrict compose box.

    This commit contains is_unauthorised_to_post_in_stream function which
    restricts unauthorised users from writing/replying on unauthorised streams.
    Two test functions have been defined under test_model to test
    is_unauthorised_to_post_in_stream function. Fixes zulip#682.
    mounilKshah committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    5aa9d49 View commit details
    Browse the repository at this point in the history
  2. boxes: Update _stream_box_autocomplete().

    This commit alters _stream_box_autocomplete() to avoid showing any
    restricted stream(s) in autocomplete suggestions.
    mounilKshah committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    0bbe86e View commit details
    Browse the repository at this point in the history
  3. boxes: Implement is_unauthorised_to_post() in boxes.py.

    This commit implements is_unauthorised_to_post() which was
    added in the previous commit. Fixes zulip#682.
    mounilKshah committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    afb5625 View commit details
    Browse the repository at this point in the history