You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: permissions_controller.rb
    path of file: ./repos/hyrax/app/controllers/hyrax
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Hyrax
  class PermissionsController < ApplicationController
    load_resource class: Hyrax::Resource, ins
    
    def copy_access
      authorize! :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