fix ChangeSet.qs_for_request logic
@@ -81,7 +81,9 @@ class ChangeSet(models.Model):
"""
Returns a base QuerySet to get only changesets the current user is allowed to see
"""
- if request.user.is_authenticated and not request.user_permissions.review_changesets:
+ if request.user_permissions.review_changesets:
+ return ChangeSet.objects.all()
+ elif request.user.is_authenticated:
return ChangeSet.objects.filter(author=request.user)
elif 'changeset' in request.session:
return ChangeSet.objects.filter(pk=request.session['changeset'])
