app/models/ability.rb
# For fedora objects that have an admin policy assigned to
# them, some of the rights that a user will be granted are
# defined in the policy file: app/models/admin_policy.rb
For fedora objects that have an admin policy assigned to
them, some of the rights that a user will be granted are
defined in the policy file: app/models/admin_policy.rb
For fedora objects that have an admin policy assigned to them some of the rights that a user will be granted are defined in the policy file : app / models / admin_policy . rb
def metadata_admin_permissions
    return unless user_groups.include?(AdminPolicy::META_ADMIN)
    can [:create, :update], ActiveFedora::Base
    can :update, SolrDocument
    can [:read, :destroy], :local_authorities
    can [:new_merge, :merge], [ActiveFedora::Base, SolrDocument]
    can :download_original, FileSet
    cannot([:read, :edit], FileSet) do |fs|
      fs.parent.is_a?(ETD) &&
        fs.parent.admin_policy_id == AdminPolicy::DISCOVERY_POLICY_ID
    end
  end
def metadata_admin_permissions return unless user_groups . include? ( AdminPolicy :: META_ADMIN ) can [ :create , :update ] , ActiveFedora :: Base can :update , SolrDocument can [ :read , :destroy ] , :local_authorities can [ :new_merge , :merge ] , [ ActiveFedora :: Base , SolrDocument ] can :download_original , FileSet cannot ( [ :read , :edit ] , FileSet ) do | fs | fs . parent . is_a? ( ETD ) && fs . parent . admin_policy_id == AdminPolicy :: DISCOVERY_POLICY_ID end end
For fedora objects that have an admin policy assigned to
them, some of the rights that a user will be granted are
defined in the policy file: app/models/admin_policy.rb
For fedora objects that have an admin policy assigned to them some of the rights that a user will be granted are defined in the policy file : app / models / admin_policy . rb
# Allow admins to download originals of AudioRecordings