app/controllers/hyrax/embargoes_controller.rb
# Override edit method to check authorization
Override edit method to check authorization
Override edit method to check authorization
def edit
      add_breadcrumb t(:'hyrax.controls.home'), root_path
      add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path
      add_breadcrumb t(:'hyrax.embargoes.index.manage_embargoes'), hyrax.embargoes_path
      add_breadcrumb t(:'hyrax.embargoes.edit.embargo_update'), '#'
      authorize! :edit, Hydra::AccessControls::Embargo
    end
def edit add_breadcrumb t ( :' hyrax.controls.home ' ) , root_path add_breadcrumb t ( :' hyrax.dashboard.breadcrumbs.admin ' ) , hyrax . dashboard_path add_breadcrumb t ( :' hyrax.embargoes.index.manage_embargoes ' ) , hyrax . embargoes_path add_breadcrumb t ( :' hyrax.embargoes.edit.embargo_update ' ) , '#' authorize! :edit , Hydra :: AccessControls :: Embargo end
Override edit method to check authorization
Override edit method to check authorization