From c9d3cd724b2d09a0aac7b1675183cfea733e812a Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Mon, 1 Aug 2016 13:08:46 -0500 Subject: [PATCH 1/2] Fix installer again (#2370) I hate bash... anyone else want to maintain this? :) --- snipeit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From eac6abe60a3d77ffc7eede30662f1309d234fdbd Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 1 Aug 2016 18:43:11 -0700 Subject: [PATCH 2/2] Fixes #2378 - disallow admins to create/edit superadmins Also disables admins from being able to edit groups, since that can grant superadmin access. --- resources/views/users/edit.blade.php | 35 ++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 41747caf65..c8374207c6 100755 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -251,7 +251,7 @@ input[type='text'][disabled], input[disabled], textarea[disabled], input[readonl
- id==Auth::user()->id) || (!Auth::user()->isSuperUser())) ? ' disabled' : '') }}> @foreach ($groups as $id => $group)