From 692e17da5815e8ed35920a0aa22370ed1266977a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 7 May 2017 13:02:19 +0300 Subject: [PATCH] Require account is confirmed to add company --- resources/views/header.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php index 97f0930613ad..39f1941860b3 100644 --- a/resources/views/header.blade.php +++ b/resources/views/header.blade.php @@ -298,7 +298,7 @@ ]) @endif
  • - @if (Utils::isAdmin()) + @if (Utils::isAdmin() && Auth::user()->confirmed) @if (count(session(SESSION_USER_ACCOUNTS)) > 1)
  • {!! link_to('/manage_companies', trans('texts.manage_companies')) !!}
  • @elseif (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5)