Add a new permission for users to see invite-only groups in groups list.
Review Request #9217 — Created Sept. 24, 2017 and submitted — Latest diff uploaded
When getting the groups list via the API, only super users can get the group list including invite-only groups.
This change adds a new permission under groups that can be granted to any user that includes all invite-only groups (except hidden groups) into the groups list requested by the user. This, however, does not allow the user to access all invite-only groups; only that they show up on the groups list page and related API requests.
Added a unit test, which passes (along with all other tests). The test checks that an invite-only group that a user is not a part of becomes viewable to the user once they are given the new permission. The test also checks that the permission does not give the user default access to invite-only hidden groups.
Diff Revision 5
This is not the most recent revision of the diff. The latest diff is revision 10. See what's changed.
reviewboard/accounts/backends.py |
---|
reviewboard/reviews/managers.py |
---|
reviewboard/reviews/models/group.py |
---|
reviewboard/reviews/tests/test_policy.py |
---|