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);