Class: CurationConcerns::PermissionsController

Inherits:
ApplicationController show all
Includes:
CurationConcernController
Defined in:
app/controllers/curation_concerns/permissions_controller.rb

Instance Method Summary collapse

Methods included from CurationConcernController

#create, #destroy, #edit, #file_manager, #new, #show, #update

Methods included from ApplicationControllerBehavior

#deny_access, #render_404, #render_json_response

Instance Method Details

#confirmObject



5
6
# File 'app/controllers/curation_concerns/permissions_controller.rb', line 5

def confirm
end

#copyObject



8
9
10
11
12
13
# File 'app/controllers/curation_concerns/permissions_controller.rb', line 8

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

#curation_concernObject



15
16
17
# File 'app/controllers/curation_concerns/permissions_controller.rb', line 15

def curation_concern
  @curation_concern ||= ActiveFedora::Base.find(params[:id])
end