Sha256: 5c4d390925ae7e2a7448365e9958b134be2711b7574c8294987e009991160f7f

Contents?: true

Size: 380 Bytes

Versions: 15

Compression:

Stored size: 380 Bytes

Contents

class DmEvent::Admin::AdminController < DmCore::Admin::AdminController
  before_filter   :authorize_access
  
protected

  #------------------------------------------------------------------------------
  def authorize_access
    unless can?(:access_event_section, :all)
      flash[:alert] = "Unauthorized Access!"
      redirect_to current_account.index_path 
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dm_event-4.2.3.10 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.9 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.8 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.7 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.6 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.5 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.4 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.3 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.2 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3.1 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.3 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.2.3 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.2.2 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.2.1 app/controllers/dm_event/admin/admin_controller.rb
dm_event-4.2.2 app/controllers/dm_event/admin/admin_controller.rb