Sha256: 8c8b14c06500b14cefbb4ab8456795f5327948a28233b95bd589808ee524bbff
Contents?: true
Size: 766 Bytes
Versions: 4
Compression:
Stored size: 766 Bytes
Contents
module FedoraMigrate::Permissions # Taken from Hydra::AccessControls::Permissions under version 7.2.2 # # We need the reader methods to get permissions from the Fedora3 # rightsMetadata datastreams def read_groups rightsMetadata.groups.map {|k, v| k if v == 'read'}.compact end def edit_groups rightsMetadata.groups.map {|k, v| k if v == 'edit'}.compact end def discover_groups rightsMetadata.groups.map {|k, v| k if v == 'discover'}.compact end def read_users rightsMetadata.users.map {|k, v| k if v == 'read'}.compact end def edit_users rightsMetadata.users.map {|k, v| k if v == 'edit'}.compact end def discover_users rightsMetadata.users.map {|k, v| k if v == 'discover'}.compact end end
Version data entries
4 entries across 4 versions & 1 rubygems