8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a6efef commit 79741f8 8000 Copy full SHA for 79741f8
app/views/layouts/_top_nav.blade.php
@@ -24,10 +24,16 @@
24
<li>
25
<a target="_blank" href="http://forumsarchive.laravel.io/">Old Forum Archive</a>
26
</li>
27
+
28
+ @if (Auth::check() && Auth::user()->hasRole('manage_users'))
29
+ <li>
30
+ <a href="{{ action('Admin\UsersController@getIndex') }}">Admin</a>
31
+ </li>
32
+ @endif
33
</ul>
34
</nav>
35
<ul class="user-navigation">
- @if(Auth::check())
36
+ @if (Auth::check())
37
<li><a href="{{ url($currentUser->profileUrl) }}">{{ $currentUser->name }}</a></li>
38
<li><a class="button" href="{{ action('AuthController@getLogout') }}">Logout</a></li>
39
@else
0 commit comments