- only admin has permission for updating DOIs
- place the links above the settings section (resources\views\settings\layouts\app.blade.php
This commit is contained in:
parent
1a387965c6
commit
37c0b5e637
2 changed files with 9 additions and 6 deletions
|
@ -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',
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue