diff --git a/app/controllers/admin/items_controller.rb b/app/controllers/admin/items_controller.rb index 0a16315..d412140 100644 --- a/app/controllers/admin/items_controller.rb +++ b/app/controllers/admin/items_controller.rb @@ -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]