From 0dbce93d1b2721a62b135e3132bdefa5cd13f436 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 15 Oct 2018 17:57:28 -0700 Subject: [PATCH] Better logic for disallowing company selection when user is not a superadmin and FCS is enabled --- .../forms/edit/company-select.blade.php | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/resources/views/partials/forms/edit/company-select.blade.php b/resources/views/partials/forms/edit/company-select.blade.php index 538490d52e..70c75960a8 100644 --- a/resources/views/partials/forms/edit/company-select.blade.php +++ b/resources/views/partials/forms/edit/company-select.blade.php @@ -1,26 +1,6 @@ -@if (($snipeSettings->full_multiple_companies_support=='1') && (Auth::user())->isSuperUser()) - -
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} -
- -
- - - {!! $errors->first($fieldname, '
:message
') !!} - -
- -@else +@if (($snipeSettings->full_multiple_companies_support=='1') && (!Auth::user())->isSuperUser()) +
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
@@ -29,4 +9,24 @@
+ +@else + +
+ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
+ +
+ {!! $errors->first($fieldname, '
:message
') !!} + +
+ @endif