Sha256: 02358c40798e95e7d3d7f2f8186deb1954f2e794d13c26ab198d447c69ab5cef

Contents?: true

Size: 398 Bytes

Versions: 38

Compression:

Stored size: 398 Bytes

Contents

module Abilities
    class ThecoreUiRailsAdmin
        include CanCan::Ability
        def initialize user
            # No one is allowed to add or destroy settings
            # just list or edit existing
            cannot :create, RailsAdminSettings::Setting
            cannot :destroy, RailsAdminSettings::Setting
            cannot :show, RailsAdminSettings::Setting
        end
    end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-2.2.3 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.2 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.1 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.2.0 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.22 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.21 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.20 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.19 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.18 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.17 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.16 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.15 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.14 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.13 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.12 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.11 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.10 lib/abilities/thecore_ui_rails_admin.rb
thecore_ui_rails_admin-2.1.9 lib/abilities/thecore_ui_rails_admin.rb