summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-13 22:10:22 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-13 22:20:48 +0200
commit315e520d1ddee8da6390d6bd6f6cb5f5e7df389d (patch)
treed0ecc9655272f6e03b8025fb1efd773e3acfd5eb /application/models
parenta9dd92393081df6d46115cae19e1b9771f90352f (diff)
Improve insufficient permisions error message
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/muser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index ffcec300a..f2b961d89 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -168,7 +168,7 @@ class Muser extends CI_Model {
return;
}
- throw new \exceptions\InsufficientPermissionsException("api/insufficient-permissions", "Access denied: Access level too low");
+ throw new \exceptions\InsufficientPermissionsException("api/insufficient-permissions", "Access denied: Access level too low. Required: $wanted_level; Have: $session_level");
}
function require_access($wanted_level = "full")