From 37c0b5e637bce883b3ff44a373c53ab396ac0352 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Wed, 2 Jun 2021 12:07:51 +0200 Subject: [PATCH] - only admin has permission for updating DOIs - place the links above the settings section (resources\views\settings\layouts\app.blade.php --- resources/views/settings/layouts/app.blade.php | 7 +++++-- routes/web.php | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/views/settings/layouts/app.blade.php b/resources/views/settings/layouts/app.blade.php index 1f26189..7791270 100644 --- a/resources/views/settings/layouts/app.blade.php +++ b/resources/views/settings/layouts/app.blade.php @@ -59,6 +59,9 @@ {{--
  • Collections
  • --}} +
  • + DOI UPDATE LIST +
  • Collection Roles
  • @@ -107,9 +110,9 @@
  • EDITOR PAGE: Released datasets
  • -
  • + {{--
  • DOI UPDATE LIST -
  • + --}} @endpermission @permission('dataset-review-list')
  • diff --git a/routes/web.php b/routes/web.php index 3aa318e..a8cf9a4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -172,17 +172,17 @@ $appRoutes = function () { 'as' => 'workflow.editor.doiStore', 'uses' => 'EditorController@doiStore', ]); - //doi + //doi update list for admin: Route::get('workflow/doi/index', [ - 'middleware' => ['permission:dataset-editor-list'], + 'middleware' => ['permission:settings'], 'as' => 'workflow.doi.index', 'uses' => 'DoiController@index', ]); Route::get('workflow/doi/edit/{id}', [ - 'middleware' => ['permission:dataset-publish'], + 'middleware' => ['permission:settings'], 'as' => 'workflow.doi.edit', 'uses' => 'DoiController@edit', ]); Route::post('workflow/doi/update/{publish_id}', [ - 'middleware' => ['permission:dataset-publish'], + 'middleware' => ['permission:settings'], 'as' => 'workflow.doi.update', 'uses' => 'DoiController@update', ]);