Sha256: 1182491f8cab4a28c9ac8a8b82262860cb2c5bf7adc5571228d195e3523bd9a6

Contents?: true

Size: 643 Bytes

Versions: 38

Compression:

Stored size: 643 Bytes

Contents

module Ddr::Auth
  class Permissions
    extend Deprecation

    READ         = :read
    DOWNLOAD     = :download
    ADD_CHILDREN = :add_children
    UPDATE       = :update
    REPLACE      = :replace
    ARRANGE      = :arrange
    PUBLISH      = :publish
    UNPUBLISH    = :unpublish
    AUDIT        = :audit
    GRANT        = :grant

    ALL = [ READ, DOWNLOAD, ADD_CHILDREN, UPDATE, REPLACE, ARRANGE, PUBLISH, UNPUBLISH, AUDIT, GRANT ]

    def self.const_missing(name)
      if name == :EDIT
        Deprecation.warn(self, "`EDIT` is deprecated. Use `UPDATE` instead.")
        return UPDATE
      end
      super
    end

  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
ddr-models-2.11.0 lib/ddr/auth/permissions.rb
ddr-models-2.10.2 lib/ddr/auth/permissions.rb
ddr-models-2.10.1 lib/ddr/auth/permissions.rb
ddr-models-2.10.0 lib/ddr/auth/permissions.rb
ddr-models-2.10.0.rc2 lib/ddr/auth/permissions.rb
ddr-models-2.10.0.rc1 lib/ddr/auth/permissions.rb
ddr-models-2.9.2 lib/ddr/auth/permissions.rb
ddr-models-2.9.1 lib/ddr/auth/permissions.rb
ddr-models-2.9.0 lib/ddr/auth/permissions.rb
ddr-models-2.9.0.rc1 lib/ddr/auth/permissions.rb
ddr-models-2.8.0 lib/ddr/auth/permissions.rb
ddr-models-2.8.0.rc1 lib/ddr/auth/permissions.rb
ddr-models-2.7.6 lib/ddr/auth/permissions.rb
ddr-models-2.7.5 lib/ddr/auth/permissions.rb
ddr-models-2.7.4 lib/ddr/auth/permissions.rb
ddr-models-2.7.3 lib/ddr/auth/permissions.rb
ddr-models-2.7.2 lib/ddr/auth/permissions.rb
ddr-models-2.7.1 lib/ddr/auth/permissions.rb
ddr-models-2.7.0 lib/ddr/auth/permissions.rb
ddr-models-2.7.0.rc1 lib/ddr/auth/permissions.rb