Skip to content

Commit

Permalink
Update permission condition for rerun_all
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosahs committed Jul 7, 2022
1 parent 07a1769 commit 89c2eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setup_test_rights
def setup_submission_rights
can :read, Submission, team: membership_params
can :read, Submission, assignment: { course_id: instructor_course_ids }
can :rerun_all, Submission, assignment: { course_id: instructor_course_ids }
can :rerun_all, Submission if user.instructor? || user.admin?
can %i[new create], Submission, assignment: { course: membership_params }
end

Expand Down

0 comments on commit 89c2eeb

Please sign in to comment.