]> BookStack Code Mirror - bookstack/commitdiff
Show users link in top nav if user is signed in and only manages users 1119/head
authorChristopher Wilkinson <redacted>
Tue, 13 Nov 2018 13:43:20 +0000 (13:43 +0000)
committerChristopher Wilkinson <redacted>
Tue, 13 Nov 2018 13:43:20 +0000 (13:43 +0000)
resources/views/base.blade.php

index e6d0b776101f2773ee254883000ff990f129e796..535548b3bd282514b67ba39a1a9d089326215e45 100644 (file)
@@ -55,6 +55,9 @@
                             @if(signedInUser() && userCan('settings-manage'))
                                 <a href="{{ baseUrl('/settings') }}">@icon('settings'){{ trans('settings.settings') }}</a>
                             @endif
+                            @if(signedInUser() && userCan('users-manage') && !userCan('settings-manage'))
+                                <a href="{{ baseUrl('/settings/users') }}">@icon('users'){{ trans('settings.users') }}</a>
+                            @endif
                             @if(!signedInUser())
                                 <a href="{{ baseUrl('/login') }}">@icon('login') {{ trans('auth.log_in') }}</a>
                             @endif