Only show promo to admins
This commit is contained in:
parent
fba3a9c3d5
commit
2f275a846d
1 changed files with 2 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ class DashboardController extends BaseController
|
|||
$expenses = $dashboardRepo->expenses($accountId, $userId, $viewAll);
|
||||
$tasks = $dashboardRepo->tasks($accountId, $userId, $viewAll);
|
||||
|
||||
$showBlueVinePromo = env('BLUEVINE_PARTNER_UNIQUE_ID')
|
||||
$showBlueVinePromo = $user->is_admin
|
||||
&& env('BLUEVINE_PARTNER_UNIQUE_ID')
|
||||
&& ! $account->company->bluevine_status
|
||||
&& $account->created_at <= date( 'Y-m-d', strtotime( '-1 month' ));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue