From 2f275a846d391bb4e61c942bbc8267567557f687 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 9 Jan 2017 10:19:10 +0200 Subject: [PATCH] Only show promo to admins --- app/Http/Controllers/DashboardController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 641d57c4ef84..02c0988a5368 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -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' ));