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