Sha256: 45950b35076d3101ed46f0ed5c14a4db7b232757c2df8f8620d3cb96fcfe00c7

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

module Georgia
  class RevisionPolicy < ApplicationPolicy

    include Georgia::Concerns::ContentPolicy
    include Georgia::Concerns::PublishingPolicy

    def index?
      publishing_user_permissions(:show_revisions).include?(true)
    end

    def create?
      publishing_user_permissions(:create_new_revision).include?(true)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/policies/georgia/revision_policy.rb