mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Remove link to settings page for non-admins
This commit is contained in:
parent
67cc5599cc
commit
6ea4f168a2
@ -488,19 +488,21 @@
|
|||||||
|
|
||||||
<ul class="nav navbar-nav navbar-right navbar-settings">
|
<ul class="nav navbar-nav navbar-right navbar-settings">
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="{{ URL::to('/settings') }}" class="dropdown-toggle">
|
@if (Utils::isAdmin())
|
||||||
<span class="glyphicon glyphicon-cog" title="{{ trans('texts.settings') }}"/>
|
<a href="{{ URL::to('/settings') }}" class="dropdown-toggle">
|
||||||
</a>
|
<span class="glyphicon glyphicon-cog" title="{{ trans('texts.settings') }}"/>
|
||||||
<ul class="dropdown-menu">
|
</a>
|
||||||
@if (Utils::isAdmin())
|
<ul class="dropdown-menu">
|
||||||
@foreach (\App\Models\Account::$basicSettings as $setting)
|
@foreach (\App\Models\Account::$basicSettings as $setting)
|
||||||
<li>{!! link_to('settings/' . $setting, uctrans("texts.{$setting}")) !!}</li>
|
<li>{!! link_to('settings/' . $setting, uctrans("texts.{$setting}")) !!}</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
<li><a href="{{ url('settings/' . ACCOUNT_INVOICE_SETTINGS) }}">{!! uctrans('texts.advanced_settings') . Utils::getProLabel(ACCOUNT_ADVANCED_SETTINGS) !!}</a></li>
|
<li><a href="{{ url('settings/' . ACCOUNT_INVOICE_SETTINGS) }}">{!! uctrans('texts.advanced_settings') . Utils::getProLabel(ACCOUNT_ADVANCED_SETTINGS) !!}</a></li>
|
||||||
@else
|
</ul>
|
||||||
<li>{!! link_to('settings/user_details', uctrans("texts.user_details")) !!}</li>
|
@else
|
||||||
@endif
|
<a href="{{ URL::to('/settings/user_details') }}" class="dropdown-toggle">
|
||||||
</ul>
|
<span class="glyphicon glyphicon-user" title="{{ trans('texts.settings') }}"/>
|
||||||
|
</a>
|
||||||
|
@endif
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user