Sha256: 9ff4f3834a3bb1e00d3ec6f03e7ab1df7e9fdef88fd7d80f8301c2fce55f8b3e

Contents?: true

Size: 294 Bytes

Versions: 8

Compression:

Stored size: 294 Bytes

Contents

module Locomotive
  class ThemeAssetPolicy < ApplicationPolicy

    def index?
      site_admin_or_designer?
    end

    def create?
      site_admin_or_designer?
    end

    def update?
      site_admin_or_designer?
    end

    def destroy?
      site_admin_or_designer?
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotivecms-3.0.0.rc4 app/policies/locomotive/theme_asset_policy.rb
locomotivecms-3.0.0.rc3 app/policies/locomotive/theme_asset_policy.rb
locomotivecms-3.0.0.rc2 app/policies/locomotive/theme_asset_policy.rb
locomotivecms-3.0.0.rc1 app/policies/locomotive/theme_asset_policy.rb
locomotivecms-3.0.0.pre.beta.1 app/policies/locomotive/theme_asset_policy.rb
locomotivecms-3.0.0.pre.alpha.3 app/policies/locomotive/theme_asset_policy.rb
locomotivecms-3.0.0.pre.alpha.2 app/policies/locomotive/theme_asset_policy.rb
locomotivecms-3.0.0.pre.alpha app/policies/locomotive/theme_asset_policy.rb