Skip to content
This repository was archived by the owner on May 14, 2018. It is now read-only.

Commit deebca8

Browse files
committed
Fix error message in controller guard
1 parent a696059 commit deebca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BjyAuthorize/Guard/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function onDispatch(MvcEvent $event)
166166
$event->setParam('action', $action);
167167

168168
$errorMessage = sprintf("You are not authorized to access %s:%s", $controller, $action);
169-
$event->setParam('exception', new UnAuthorizedException('You are not authorized to access ' . $errorMessage));
169+
$event->setParam('exception', new UnAuthorizedException($errorMessage));
170170

171171
/* @var $app \Zend\Mvc\ApplicationInterface */
172172
$app = $event->getTarget();

0 commit comments

Comments
 (0)