Sha256: b8e11fc0c581a434c36832eb3182e2499600c8a8894b7e119af68bb40fd41321

Contents?: true

Size: 702 Bytes

Versions: 6

Compression:

Stored size: 702 Bytes

Contents

class CurationConcern::PermissionsController < ApplicationController
  include Worthwhile::CurationConcernController
  with_themed_layout '1_column'
  self.curation_concern_type = ActiveFedora::Base

  def confirm
  end

  def copy
    Sufia.queue.push(VisibilityCopyWorker.new(curation_concern.id))
    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 polymorphic_path([:curation_concern, curation_concern]), notice: flash_message
  end

  def curation_concern
    @curation_concern ||= self.curation_concern_type.find(params[:id], cast: true)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 app/controllers/curation_concern/permissions_controller.rb
worthwhile-0.1.1 app/controllers/curation_concern/permissions_controller.rb
worthwhile-0.1.0 app/controllers/curation_concern/permissions_controller.rb
worthwhile-0.0.3 app/controllers/curation_concern/permissions_controller.rb
worthwhile-0.0.2 app/controllers/curation_concern/permissions_controller.rb
worthwhile-0.0.1 app/controllers/curation_concern/permissions_controller.rb