1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Require account is confirmed to add company

This commit is contained in:
Hillel Coren 2017-05-07 13:02:19 +03:00
parent 697e224bed
commit 692e17da58

View File

@ -298,7 +298,7 @@
])
@endif
<li class="divider"></li>
@if (Utils::isAdmin())
@if (Utils::isAdmin() && Auth::user()->confirmed)
@if (count(session(SESSION_USER_ACCOUNTS)) > 1)
<li>{!! link_to('/manage_companies', trans('texts.manage_companies')) !!}</li>
@elseif (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5)