From e0a8f2f919cd20e402240df17f5c011f27bd9f61 Mon Sep 17 00:00:00 2001 From: Ash Powell Date: Wed, 3 Jul 2019 11:45:48 +0100 Subject: [PATCH] remove auth check no need as canviewanalytic checks --- src/APAnalytics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/APAnalytics.php b/src/APAnalytics.php index 18ab2cb..1c7482d 100644 --- a/src/APAnalytics.php +++ b/src/APAnalytics.php @@ -88,7 +88,7 @@ public function show($collection, $interval = 'count', $timeframe = null, $filte } } - abort_unless(auth()->check() && $this->canViewAnalytic($model, $matchArray, auth()->user()), 403, 'You dont have permission to view these analytics'); + abort_unless($this->canViewAnalytic($model, $matchArray, auth()->user()), 403, 'You dont have permission to view these analytics'); if ($start) { $matchArray['created_at']['$gte'] = mongoTime($start);