Sha256: 49a03d7d506c71a45dca2d113a04b338fc0901c795c49d5863fc87ecca079832
Contents?: true
Size: 381 Bytes
Versions: 13
Compression:
Stored size: 381 Bytes
Contents
class DmCms::Admin::AdminController < DmCore::Admin::AdminController before_filter :authorize_access protected #------------------------------------------------------------------------------ def authorize_access unless can?(:access_content_section, :all) flash[:alert] = "Unauthorized Access!" redirect_to current_account.index_path end end end
Version data entries
13 entries across 13 versions & 1 rubygems