--- ../../../orig/ReviewBoard-1.7.16/reviewboard/scmtools/models.py 2013-10-11 15:27:38.000000000 -0700
+++ ./models.py 2013-10-18 15:04:02.669261000 -0700
@@ -199,15 +199,17 @@
The repository is accessibly by the user if it is public or
the user has access to it (either by being explicitly on the allowed
- users list, or by being a member of a review group on that list).
+ users list, or by being a member of a review group on that list),
+ or if user is superuser.
"""
if self.local_site and not self.local_site.is_accessible_by(user):
return False
return (self.public or
- (user.is_authenticated() and
- (self.review_groups.filter(users__pk=user.pk).count() > 0 or
- self.users.filter(pk=user.pk).count() > 0)))
+ user.is_superuser or
+ (user.is_authenticated() and
+ (self.review_groups.filter(users__pk=user.pk).c