- 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
|
@ -59,6 +59,9 @@
|
|||
{{-- <li class="pure-menu-item {{ Route::is('settings.collection*') ? 'active' : '' }}">
|
||||
<a class="pure-menu-link" href="{{ route('settings.collection') }}"><i class="fa fa-archive"></i> Collections</a>
|
||||
</li> --}}
|
||||
<li class="pure-menu-item {{ Route::is('publish.workflow.doi*') ? 'active' : '' }}">
|
||||
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.doi.index') }}"><i class="fas fa-list"></i> DOI UPDATE LIST</a>
|
||||
</li>
|
||||
<li class="pure-menu-item {{ Route::is('settings.collectionrole*') ? 'active' : '' }}">
|
||||
<a class="pure-menu-link" href="{{ route('settings.collectionrole.index') }}"><i class="fa fa-archive"></i> Collection Roles</a>
|
||||
</li>
|
||||
|
@ -107,9 +110,9 @@
|
|||
<li class="pure-menu-item {{ Route::is('publish.workflow.editor*') ? 'active' : '' }}">
|
||||
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.editor.index') }}"><i class="fas fa-list"></i> EDITOR PAGE: Released datasets</a>
|
||||
</li>
|
||||
<li class="pure-menu-item {{ Route::is('publish.workflow.doi*') ? 'active' : '' }}">
|
||||
{{-- <li class="pure-menu-item {{ Route::is('publish.workflow.doi*') ? 'active' : '' }}">
|
||||
<a class="pure-menu-link" href="{{ URL::route('publish.workflow.doi.index') }}"><i class="fas fa-list"></i> DOI UPDATE LIST</a>
|
||||
</li>
|
||||
</li> --}}
|
||||
@endpermission
|
||||
@permission('dataset-review-list')
|
||||
<li class="pure-menu-item {{ Route::is('publish.workflow.review*') ? 'active' : '' }}">
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user