lib/ddr/auth/permissions.rb in ddr-models-2.11.0 vs lib/ddr/auth/permissions.rb in ddr-models-3.0.0.alpha.1

- old
+ new

@@ -1,27 +1,16 @@ 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 + ALL = [ READ, DOWNLOAD, ADD_CHILDREN, UPDATE, REPLACE, ARRANGE, AUDIT, GRANT ] end end