Sha256: f747c61a32cee7953a656e4835d90af490df7a123ababb1824f83f5a6b5f2d91

Contents?: true

Size: 351 Bytes

Versions: 34

Compression:

Stored size: 351 Bytes

Contents

module Locomotive
  class SnippetPolicy < 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

    def destroy_all?
      site_admin_or_designer?
    end

  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.2.0.alpha1 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.1.1 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.1.0 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.1.0.rc1 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.3 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.2 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.1 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.0 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.0.rc0 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.0.alpha3 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.4.1 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.0.alpha2 app/policies/locomotive/snippet_policy.rb
locomotivecms-4.0.0.alpha1 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.4.0 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.3.0 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.3.0.rc3 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.3.0.rc2 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.1.2 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.2.1 app/policies/locomotive/snippet_policy.rb