Skip to content

Commit

Permalink
Minor fix for LOEP controller
Browse files Browse the repository at this point in the history
  • Loading branch information
agordillo committed Jul 31, 2015
1 parent ab3ca94 commit 476f158
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/loep/base_controller.rb
Expand Up @@ -18,7 +18,6 @@ def authenticate_app
rescue
return render :json => ["Unauthorized"], :status => :unauthorized
end

end

end
2 changes: 1 addition & 1 deletion app/controllers/loep/los_controller.rb
Expand Up @@ -14,7 +14,7 @@ def show
def update
#New information about this LO is available on LOEP (e.g. a new evaluation and/or metric)
lo = ActivityObject.getObjectFromGlobalId(params[:id]) rescue nil
return if lo.nil? #This lo does not exist
return render json: "Resource not found", :status => 404 if lo.nil? #This lo does not exist

eEvData = JSON(params["lo"])

Expand Down

0 comments on commit 476f158

Please sign in to comment.