Sha256: 8cb3d1a7ea36f0f1d3230b8488bf1b54a4954a98423d30026f9934253f58b4d7

Contents?: true

Size: 504 Bytes

Versions: 13

Compression:

Stored size: 504 Bytes

Contents

module Ddr::Auth
  class Permissions

    READ         = :read
    DOWNLOAD     = :download
    ADD_CHILDREN = :add_children
    UPDATE       = :update
    REPLACE      = :replace
    ARRANGE      = :arrange
    GRANT        = :grant

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

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

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ddr-models-2.0.1 lib/ddr/auth/permissions.rb
ddr-models-2.0.0 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.rc6 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.rc5 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.rc4 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.rc3 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.rc2 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.rc1 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.pre.5 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.pre.4 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.pre.3 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.pre.2 lib/ddr/auth/permissions.rb
ddr-models-2.0.0.pre.1 lib/ddr/auth/permissions.rb