From 81d265db0876d9a7bfc4975faa58b55bd5cd2faa Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 18 Jun 2017 20:47:34 -0500 Subject: [PATCH] Prevent the irritating moment when you logout accidentally when trying to click Admin CP. --- .../themes/pterodactyl/layouts/admin.blade.php | 13 ++++++++++++- .../themes/pterodactyl/layouts/master.blade.php | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/resources/themes/pterodactyl/layouts/admin.blade.php b/resources/themes/pterodactyl/layouts/admin.blade.php index d546576ee..6309f4dc9 100644 --- a/resources/themes/pterodactyl/layouts/admin.blade.php +++ b/resources/themes/pterodactyl/layouts/admin.blade.php @@ -79,7 +79,7 @@
  • -
  • +
  • @@ -191,6 +191,17 @@ {!! Theme::js('vendor/select2/select2.full.min.js') !!} {!! Theme::js('js/admin/functions.js') !!} {!! Theme::js('js/autocomplete.js') !!} + + @if(Auth::user()->isRootAdmin()) + + @endif @show diff --git a/resources/themes/pterodactyl/layouts/master.blade.php b/resources/themes/pterodactyl/layouts/master.blade.php index 9620faa02..b57299607 100644 --- a/resources/themes/pterodactyl/layouts/master.blade.php +++ b/resources/themes/pterodactyl/layouts/master.blade.php @@ -83,7 +83,7 @@ @endif
  • -
  • +
  • @@ -283,6 +283,17 @@ @if(config('pterodactyl.lang.in_context')) {!! Theme::js('vendor/phraseapp/phraseapp.js') !!} @endif + + @if(Auth::user()->isRootAdmin()) + + @endif @show