Skip to content

Commit

Permalink
remove auth check no need as canviewanalytic checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AshPowell committed Jul 3, 2019
1 parent 2cbc2dc commit e0a8f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/APAnalytics.php
Expand Up @@ -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);
Expand Down

0 comments on commit e0a8f2f

Please sign in to comment.