Sha256: 464865d1c19048a504a2ee93d93b708dfdb0717ae3ccdb8a2c4682ec35b2bc63

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

class Admin::SnippetsController < Admin::ResourceController
  paginate_models
  before_action :authorize_role
  only_allow_access_to :index, :show, :new, :create, :edit, :update, :remove, :destroy,
                       when: %i[designer admin],
                       denied_url: { controller: 'admin/pages', action: 'index' },
                       denied_message: 'You must have at least editor privileges to perform this action.'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trusty-cms-7.0.8 app/controllers/admin/snippets_controller.rb
trusty-cms-7.0.7 app/controllers/admin/snippets_controller.rb
trusty-cms-7.0.6 app/controllers/admin/snippets_controller.rb
trusty-cms-7.0.5 app/controllers/admin/snippets_controller.rb
trusty-cms-7.0.4 app/controllers/admin/snippets_controller.rb
trusty-cms-7.0.3 app/controllers/admin/snippets_controller.rb