summaryrefslogtreecommitdiffstats
path: root/application/core
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2020-04-19 13:48:22 +0200
committerFlorian Pritz <bluewind@xinu.at>2020-04-19 13:55:45 +0200
commit4bc1a611da7776f22f2cfeee8e472038b7d8673c (patch)
tree4fc79ad617a28cf8780138a91f1079cfe6337054 /application/core
parentac934ca94370f5204319f88eef0a7747fe7e133a (diff)
Reclassify various exceptions as InsufficientPermissionsException
That way they get the correct HTTP status code and they also get ignored by the logging code. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/core')
-rw-r--r--application/core/MY_Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php
index 250c9d95c..f33dedbb3 100644
--- a/application/core/MY_Controller.php
+++ b/application/core/MY_Controller.php
@@ -54,7 +54,7 @@ class MY_Controller extends CI_Controller {
protected function _require_cli_request()
{
if (!is_cli()) {
- throw new \exceptions\PublicApiException("api/cli-only", "This function can only be accessed via the CLI interface");
+ throw new \exceptions\InsufficientPermissionsException("api/cli-only", "This function can only be accessed via the CLI interface");
}
}