Sha256: 01790c6221c359ef256bf683b0bb135413f49a8493b25e9c685c63c51b56dcb0
Contents?: true
Size: 710 Bytes
Versions: 17
Compression:
Stored size: 710 Bytes
Contents
module CurationConcerns module PermissionsControllerBehavior extend ActiveSupport::Concern included do include CurationConcerns::CurationConcernController def confirm end 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 curation_concern @curation_concern ||= ActiveFedora::Base.find(params[:id]) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems