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