Skip to content

Commit 7654d36

Browse files
committed
Only show admin control menu if the user is a root admin
1 parent 046e915 commit 7654d36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/themes/pterodactyl/layouts/master.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
<span class="hidden-xs">{{ Auth::user()->name_first }} {{ Auth::user()->name_last }}</span> <span class="caret"></span>
6363
</a>
6464
<ul class="dropdown-menu" role="menu">
65-
<li><a href="{{ route('admin.index') }}">@lang('strings.admin_control')</a></li>
65+
@if(Auth::user()->isRootAdmin())
66+
<li><a href="{{ route('admin.index') }}">@lang('strings.admin_control')</a></li>
67+
@endif
6668
<li><a href="{{ route('auth.logout') }}">@lang('strings.sign_out')</a></li>
6769
</ul>
6870
{{-- <ul class="dropdown-menu">

0 commit comments

Comments
 (0)