Sha256: 8677336d7d4d11c4526f099f1916d3cc84b0df8bdee06d5824d118468861b351

Contents?: true

Size: 373 Bytes

Versions: 16

Compression:

Stored size: 373 Bytes

Contents

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

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

Version data entries

16 entries across 16 versions & 1 rubygems

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