Sha256: 4132b979d95661ba186ddaf742a71d648601a190f1d5fe687fa83e1b3708b65a
Contents?: true
Size: 943 Bytes
Versions: 1
Compression:
Stored size: 943 Bytes
Contents
module Cavy module Permissions class ClientPermission < BasePermission def initialize(_user) allow 'cavy/sessions', %i[new create destroy] allow 'cavy/pages', %i[page edit update] allow 'cavy/admin', %i[dashboard users new_user] allow 'cavy/admin_pages', %i[index show update edit add_data create_data] allow 'cavy/mercury', %i[edit resource snippet_options snippet_preview test_page image] allow 'cavy/users', %i[index show edit update new create] allow 'cavy/item_groups', %i[index show edit update update_order] allow 'cavy/items', %i[index show new edit create update destroy] allow 'cavy/item_sections', %i[index show] allow 'cavy/statistics', %i[visitor_history page_view_history] allow_param :page, [:title, :description, :tag_string, :key, :value, data: :hstore] allow_param :item, [data: :hstore] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cavy-0.1.0.beta2 | app/models/cavy/permissions/client_permission.rb |