From cb62e6a96da6f02cd2e692108bed3c4601661229 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Wed, 30 Aug 2017 21:12:35 -0500 Subject: [PATCH] Hide from UI if not admin --- .../themes/pterodactyl/base/api/new.blade.php | 56 ++++++++++--------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/resources/themes/pterodactyl/base/api/new.blade.php b/resources/themes/pterodactyl/base/api/new.blade.php index a7a487c3a..aeef9d24b 100644 --- a/resources/themes/pterodactyl/base/api/new.blade.php +++ b/resources/themes/pterodactyl/base/api/new.blade.php @@ -110,35 +110,37 @@ @endif @endforeach -
- @foreach($permissions['admin'] as $block => $perms) -
-
-
-

@lang('base.api.permissions.admin.' . $block . '_header')

-
-
- @foreach($perms as $permission) -
-
- - + @if(Auth::user()->root_admin) +
+ @foreach($permissions['admin'] as $block => $perms) +
+
+
+

@lang('base.api.permissions.admin.' . $block . '_header')

+
+
+ @foreach($perms as $permission) +
+
+ + +
+

@lang('base.api.permissions.admin.' . $block . '.' . $permission . '.desc')

-

@lang('base.api.permissions.admin.' . $block . '.' . $permission . '.desc')

-
- @endforeach + @endforeach +
-
- @if ($loop->iteration % 3 === 0) -
- @endif - @if ($loop->iteration % 2 === 0) -
- @endif - @endforeach -
+ @if ($loop->iteration % 3 === 0) +
+ @endif + @if ($loop->iteration % 2 === 0) +
+ @endif + @endforeach +
+ @endif @endsection