Class: Hyrax::PermissionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::PermissionsController
- Defined in:
- app/controllers/hyrax/permissions_controller.rb
Instance Attribute Summary collapse
-
#curation_concern ⇒ Object
readonly
Returns the value of attribute curation_concern.
Instance Method Summary collapse
Instance Attribute Details
#curation_concern ⇒ Object (readonly)
Returns the value of attribute curation_concern.
6 7 8 |
# File 'app/controllers/hyrax/permissions_controller.rb', line 6 def curation_concern @curation_concern end |
Instance Method Details
#confirm ⇒ Object
9 10 11 |
# File 'app/controllers/hyrax/permissions_controller.rb', line 9 def confirm # intentional noop to display default view end |
#confirm_access ⇒ Object
21 22 23 |
# File 'app/controllers/hyrax/permissions_controller.rb', line 21 def confirm_access # intentional noop to display default view end |
#copy ⇒ Object
14 15 16 17 18 19 |
# File 'app/controllers/hyrax/permissions_controller.rb', line 14 def copy :edit, curation_concern VisibilityCopyJob.perform_later(curation_concern) = '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: end |
#copy_access ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'app/controllers/hyrax/permissions_controller.rb', line 25 def copy_access :edit, curation_concern # copy visibility VisibilityCopyJob.perform_later(curation_concern) # copy permissions InheritPermissionsJob.perform_later(curation_concern) redirect_to [main_app, curation_concern], notice: I18n.t("hyrax.upload.change_access_flash_message") end |