Filter repositories based on a user's access.

Review Request #1915 — Created Nov. 14, 2010 and submitted

Information

Review Board
master

Reviewers

Filter repositories based on a user's access.

This provides a Repository.objects.accessible() query function that allows
for filtering based on a user's access to the repository. It can also optionally
show hidden (but accessible) repositories if visible_only is set to False.

All call sites have been updated to use the new accessible() function and to
check if a repository is accessible when accessing it directly. This includes the
New Review Request page.
New unit tests pass.

Verified that the repos were limited based on whether I had access (when they were private).
chipx86
Review request changed
Change Summary:
* Synced with master.
Diff:

Revision 2 (+138 -30)

Show changes

reviewboard/admin/views.py
reviewboard/reviews/forms.py
reviewboard/reviews/views.py
reviewboard/scmtools/managers.py
reviewboard/scmtools/models.py
reviewboard/scmtools/tests.py
reviewboard/webapi/json.py
reviewboard/webapi/resources.py
1 more
david
  1. 
      
  2. 
      
Loading...