Skip to content

Commit

Permalink
fix bug in controller
Browse files Browse the repository at this point in the history
Blair Anderson committed Mar 16, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f63e2f0 commit f6bc53b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/admin/items_controller.rb
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ class Admin::ItemsController < ApplicationController
current_admin = !!(current_user && current_user.admin?)
unless current_admin
redirect_to root_path, alert: "Unauthorized."
return
end
end
before_action :set_admin_item, only: [:show, :edit, :update, :destroy]

0 comments on commit f6bc53b

Please sign in to comment.