Class: CurationConcerns::PermissionsController

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

Overview

TODO: Replace this with something that has lower technical debt This controller is only needed because we override the layout that CurationConcerns sets for it, to pick up Sufia’s layout. We should be able to remove this controller once we have updated CC to allow for the layout to be configured. See here for more discussion: github.com/projecthydra/sufia/issues/1731#issuecomment-206597463

Instance Method Summary collapse

Instance Method Details

#confirmObject



12
13
# File 'app/controllers/curation_concerns/permissions_controller.rb', line 12

def confirm
end

#copyObject



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

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



22
23
24
# File 'app/controllers/curation_concerns/permissions_controller.rb', line 22

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