Sha256: 59e106a003cc37d30f6a863de0c18d97fcb2cec9cd5cf6363847a7ab66729061
Contents?: true
Size: 1.18 KB
Versions: 7
Compression:
Stored size: 1.18 KB
Contents
# frozen_string_literal: true module Hyrax class PermissionsController < ApplicationController load_resource class: ActiveFedora::Base, instance_name: :curation_concern attr_reader :curation_concern helper_method :curation_concern def confirm # intentional noop to display default view end deprecation_deprecate confirm: "Use the #confirm_access action instead." def copy authorize! :edit, curation_concern VisibilityCopyJob.perform_later(curation_concern) flash_message = 'Updating file permissions. This may take a few minutes. You may want to refresh your browser or return to this record later to see the updated file permissions.' redirect_to [main_app, curation_concern], notice: flash_message end def confirm_access # intentional noop to display default view end def copy_access authorize! :edit, curation_concern # copy visibility VisibilityCopyJob.perform_later(curation_concern) # copy permissions InheritPermissionsJob.perform_later(curation_concern) redirect_to [main_app, curation_concern], notice: I18n.t("hyrax.upload.change_access_flash_message") end end end
Version data entries
7 entries across 7 versions & 1 rubygems