Skip to content

Commit

Permalink
revert user check
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Mar 27, 2015
1 parent 3632f0d commit d9d7892
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ public function indexAction(Request $request)
{
$userService = $this->get('user');
$blogService = $this->get('blog');
try {
$user = $userService->getCurrentUser();
} catch (\Newscoop\NewscoopException $e) {
$user = null;
}
$user = $userService->getCurrentUser();

if (!$user || $blogService->isBlogger($user)) {
if ($blogService->isBlogger($user)) {
throw new AccessDeniedException();
}

Expand Down

0 comments on commit d9d7892

Please sign in to comment.