- 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' : '' }}">
|
{{-- <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>
|
<a class="pure-menu-link" href="{{ route('settings.collection') }}"><i class="fa fa-archive"></i> Collections</a>
|
||||||
</li> --}}
|
</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' : '' }}">
|
<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>
|
<a class="pure-menu-link" href="{{ route('settings.collectionrole.index') }}"><i class="fa fa-archive"></i> Collection Roles</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -107,9 +110,9 @@
|
||||||
<li class="pure-menu-item {{ Route::is('publish.workflow.editor*') ? 'active' : '' }}">
|
<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>
|
<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>
|
||||||
<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>
|
<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
|
@endpermission
|
||||||
@permission('dataset-review-list')
|
@permission('dataset-review-list')
|
||||||
<li class="pure-menu-item {{ Route::is('publish.workflow.review*') ? 'active' : '' }}">
|
<li class="pure-menu-item {{ Route::is('publish.workflow.review*') ? 'active' : '' }}">
|
||||||
|
|
|
@ -172,17 +172,17 @@ $appRoutes = function () {
|
||||||
'as' => 'workflow.editor.doiStore', 'uses' => 'EditorController@doiStore',
|
'as' => 'workflow.editor.doiStore', 'uses' => 'EditorController@doiStore',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//doi
|
//doi update list for admin:
|
||||||
Route::get('workflow/doi/index', [
|
Route::get('workflow/doi/index', [
|
||||||
'middleware' => ['permission:dataset-editor-list'],
|
'middleware' => ['permission:settings'],
|
||||||
'as' => 'workflow.doi.index', 'uses' => 'DoiController@index',
|
'as' => 'workflow.doi.index', 'uses' => 'DoiController@index',
|
||||||
]);
|
]);
|
||||||
Route::get('workflow/doi/edit/{id}', [
|
Route::get('workflow/doi/edit/{id}', [
|
||||||
'middleware' => ['permission:dataset-publish'],
|
'middleware' => ['permission:settings'],
|
||||||
'as' => 'workflow.doi.edit', 'uses' => 'DoiController@edit',
|
'as' => 'workflow.doi.edit', 'uses' => 'DoiController@edit',
|
||||||
]);
|
]);
|
||||||
Route::post('workflow/doi/update/{publish_id}', [
|
Route::post('workflow/doi/update/{publish_id}', [
|
||||||
'middleware' => ['permission:dataset-publish'],
|
'middleware' => ['permission:settings'],
|
||||||
'as' => 'workflow.doi.update', 'uses' => 'DoiController@update',
|
'as' => 'workflow.doi.update', 'uses' => 'DoiController@update',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user