Skip to content

Commit

Permalink
fix: ForbiddenExceptionでメッセージを省略したときのみ「このアカウントでは、・・・」のメッセージに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Oct 29, 2019
1 parent e0c75f7 commit 50c86df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/Component/ReservationPermissionComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function startup(Controller $controller) {
break;
}
// チェックで引っかかってしまったらForbidden
throw new ForbiddenException(__d('net_commons', 'Permission denied'));
throw new ForbiddenException();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Controller/Component/ReservationSettingsComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function startup(Controller $controller) {
return;
}

throw new ForbiddenException('Permission denied');
throw new ForbiddenException();
}

}

0 comments on commit 50c86df

Please sign in to comment.