</div>
<div class="text-right">
- <nav class="header-links" >
+ <nav class="header-links">
<div class="links text-center">
@if (hasAppAccess())
<a class="hide-over-l" href="{{ url('/search') }}">@icon('search'){{ trans('common.search') }}</a>
@endif
@if(!signedInUser())
- @if(setting('registration-enabled') && config('auth.method') !== 'ldap')
- <a href="{{ url('/register') }}">@icon('new-user') {{ trans('auth.sign_up') }}</a>
+ @if(setting('registration-enabled') && config('auth.method') === 'standard')
+ <a href="{{ url('/register') }}">@icon('new-user'){{ trans('auth.sign_up') }}</a>
@endif
- <a href="{{ url('/login') }}">@icon('login') {{ trans('auth.log_in') }}</a>
+ <a href="{{ url('/login') }}">@icon('login'){{ trans('auth.log_in') }}</a>
@endif
</div>
@if(signedInUser())
<a href="{{ url("/settings/users/{$currentUser->id}") }}">@icon('edit'){{ trans('common.edit_profile') }}</a>
</li>
<li>
- <a href="{{ url('/logout') }}">@icon('logout'){{ trans('auth.logout') }}</a>
+ @if(config('auth.method') === 'saml2')
+ <a href="{{ url('/saml2/logout') }}">@icon('logout'){{ trans('auth.logout') }}</a>
+ @else
+ <a href="{{ url('/logout') }}">@icon('logout'){{ trans('auth.logout') }}</a>
+ @endif
</li>
</ul>
</div>
</div>
</div>
-</header>
\ No newline at end of file
+</header>