class Admin::VendorOverviewController < Spree::BaseController ssl_required helper :search helper 'admin/navigation' layout 'admin' before_filter :vendor def vendor if !current_user.has_role?("vendor") unauthorized end end def index end end