lib/hyrax/role_registry.rb in hyrax-1.1.1 vs lib/hyrax/role_registry.rb in hyrax-2.0.0.beta1

- old
+ new

@@ -7,10 +7,14 @@ # @api public # You may develop your application assuming that the 'managing' role will always be present and valid MANAGING = 'managing'.freeze # @api public + # You may develop your application assuming that the 'approving' role will always be present and valid + APPROVING = 'approving'.freeze + + # @api public # You may develop your application assuming that the 'depositing' role will always be present and valid DEPOSITING = 'depositing'.freeze # @api public # @@ -18,9 +22,10 @@ # While the descriptions may be mutable, the names are assumed to exist. # # @see Sipity::Role for data integrity enforcement MAGIC_ROLES = { MANAGING => 'Grants access to management tasks'.freeze, + APPROVING => 'Grants access to approval tasks'.freeze, DEPOSITING => 'Grants access to depositing tasks'.freeze }.freeze def initialize @roles = MAGIC_ROLES.dup