if you can review changesets you can see all of them
This commit is contained in:
parent
0dbcb9c45f
commit
9bef360342
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class ChangeSet(models.Model):
|
|||
"""
|
||||
Returns a base QuerySet to get only changesets the current user is allowed to see
|
||||
"""
|
||||
if request.user.is_authenticated:
|
||||
if request.user.is_authenticated and not request.user_permissions.review_changesets:
|
||||
return ChangeSet.objects.filter(author=request.user)
|
||||
elif 'changeset' in request.session:
|
||||
return ChangeSet.objects.filter(pk=request.session['changeset'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue