Sha256: 1fba569774e357757c6d315283200a5cd13954059a89e1c0a7b5ddbc9bf365cb

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 Bytes

Contents

module Locomotive
  class ContentAssetPolicy < ApplicationPolicy

    def index?
      site_staff?
    end

    def new?
      site_staff?
    end

    def edit?
      site_staff?
    end

    def create?
      site_staff? && !membership.visitor?
    end

    def update?
      site_staff? && !membership.visitor?
    end

    def destroy?
      site_staff? && !membership.visitor?
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.2.0.alpha1 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.1.1 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.1.0 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.1.0.rc1 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.0.3 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.0.2 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.0.1 app/policies/locomotive/content_asset_policy.rb
locomotivecms-4.0.0 app/policies/locomotive/content_asset_policy.rb