Class: CurationConcerns::PermissionsController
Instance Method Summary
collapse
#create, #destroy, #edit, #file_manager, #new, #show, #update
#deny_access, #render_404, #render_json_response
Instance Method Details
#confirm ⇒ Object
5
6
|
# File 'app/controllers/curation_concerns/permissions_controller.rb', line 5
def confirm
end
|
#copy ⇒ Object
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_concern ⇒ Object
15
16
17
|
# File 'app/controllers/curation_concerns/permissions_controller.rb', line 15
def curation_concern
@curation_concern ||= ActiveFedora::Base.find(params[:id])
end
|