Cannot access moderation views

Bug #697642 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ratings and Reviews server
Fix Released
Medium
Michael Nelson

Bug Description

Accessing:

http://184.82.116.62/reviews/moderations/

even with the correct permission assigned results in the forbidden page.

This is because the permission_required decorator used on the views is specifying the permission incorrectly:

@permission_required('can_moderate', login_url='/reviews/forbidden')

should be:

@permission_required('reviewsapp.can_moderate', login_url='/reviews/forbidden')

Our tests ensure that without the permission the redirection happens correctly, but then mock the has_perm decorator to test successful calls.

Changed in rnr-server:
status: Confirmed → In Progress
Revision history for this message
Dave Morley (davmor2) wrote :

I can access this with no issues

Changed in rnr-server:
status: In Progress → Fix Committed
Changed in rnr-server:
milestone: none → 10.12
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.