File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ def show
64
64
submissions = exercise . submissions . order ( 'submissions.created_at DESC' )
65
65
submissions = submissions . where ( user_id : current_user . id ) unless current_user . administrator?
66
66
submissions = submissions . includes ( :awarded_points ) . includes ( :user )
67
- authorize! :read , submissions
68
67
69
68
data = {
70
69
course_name : course . name ,
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ def submittable_by?(user)
190
190
# Whether a user may see all metadata about the exercise
191
191
def visible_to? ( user )
192
192
user . administrator? || user . teacher? ( course . organization ) || user . assistant? ( course ) ||
193
- _fast_visible? && ( unlocked_for? ( user ) || unlock_spec_obj. permits_unlock_for? ( user ) )
193
+ _fast_visible? && ( unlocked_for? ( user ) || unlock_spec_obj . permits_unlock_for? ( user ) )
194
194
end
195
195
196
196
def _fast_visible?
You can’t perform that action at this time.
0 commit comments