Permalink
Browse files

MINOR: Fix PermissionDeniedException to not require all options...

  • Loading branch information...
1 parent 8201160 commit 2dbc6192d4bc322e48338a5ab061aa8624653b8b @nyeholt committed Sep 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/services/PermissionService.php
@@ -358,7 +358,7 @@ public function permCacheKey(DataObject $node, $perm) {
}
class PermissionDeniedException extends Exception {
- public function __construct($permission, $message, $code, $previous) {
+ public function __construct($permission, $message = '', $code = null, $previous = null) {
parent::__construct($message . ' ' . $permission, $code, $previous);
}
}

0 comments on commit 2dbc619

Please sign in to comment.