+
+
+ @if (!Auth::user()->isSuperUser())
+
Only superadmins may grant a user superadmin access.
+ @endif
+
+
@foreach ($permissions as $area => $permission)
@@ -306,16 +313,34 @@ input[type='text'][disabled], input[disabled], textarea[disabled], input[readonl
+ @if (($permission_name == 'superuser') && (!Auth::user()->isSuperUser()))
+ {{ Form::radio('permission['.$permission_name.']', '0', $userPermissions[$permission_name] =='0', ['class' => 'minimal', 'disabled'=>'disabled']) }}
+ @else
+ {{ Form::radio('permission['.$permission_name.']', '0', $userPermissions[$permission_name] =='0', ['class' => 'minimal']) }}
+ @endif
+
+ Inherit
@endif
diff --git a/snipeit.sh b/snipeit.sh
index 6769c6861c..58976034fb 100755
--- a/snipeit.sh
+++ b/snipeit.sh
@@ -51,7 +51,7 @@ elif [ -f /etc/os-release ]; then
#Order is important here. If /etc/os-release and /etc/centos-release exist, we're on centos 7.
#If only /etc/centos-release exist, we're on centos6(or earlier). Centos-release is less parsable,
#so lets assume that it's version 6 (Plus, who would be doing a new install of anything on centos5 at this point..)
-elif [ -f /etc/centos-release]; then
+elif [ -f /etc/centos-release ]; then
distro="Centos"
version="6"
else