Ensure views only link to those actions allowed for current user
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
h1 = link_to(@exercise, exercise_path(@exercise))
|
||||
h1 = link_to_if(policy(@exercise).show?, @exercise, exercise_path(@exercise))
|
||||
|
||||
.feedback-page
|
||||
.header = t('activerecord.attributes.exercise.description')
|
||||
|
Reference in New Issue
Block a user