Skip to content
Snippets Groups Projects
Commit dc568b3d authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

...

parent 802ed7a5
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,7 @@ class V1::LearningObjectsController < ApplicationController
# Use callbacks to share common setup or constraints between actions.
def set_learning_object
#check if user is admin to show destroyed object
if current_user.try(:is_admin?)
@learning_object ||= LearningObject.unscoped.find(params[:id])
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment