lib/ddr/auth/permissions.rb in ddr-models-2.4.10 vs lib/ddr/auth/permissions.rb in ddr-models-2.4.11

- old
+ new

@@ -6,13 +6,15 @@ 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, AUDIT, 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