diff --git a/app/controllers/learning_objects_controller.rb b/app/controllers/learning_objects_controller.rb index c49c77a11407279d13a9e2aa8ac4addfd1e2e9e3..d7488a504fd84fea846998aa440f4a1e79532656 100644 --- a/app/controllers/learning_objects_controller.rb +++ b/app/controllers/learning_objects_controller.rb @@ -116,7 +116,7 @@ class LearningObjectsController < ApplicationController end def increment_learning_object_views - View.create(viewable: @learning_object, user: current_user) if user_signed_in? && @learning_object.owner != current_user + View.create(viewable: @learning_object, user: current_user) if user_signed_in? && @learning_object.publisher != current_user end def success_redirect(learning_object)