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-3.3.0.rc1 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.2.0 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.2.0.rc2 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.2.0.rc1 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.1.1 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.1.0 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.1.0.rc3 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.1.0.rc2 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.1.0.rc1 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.0.1 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.0.0 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.0.0.rc7 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.0.0.rc6 app/policies/locomotive/snippet_policy.rb
locomotivecms-3.0.0.rc5 app/policies/locomotive/snippet_policy.rb