This commit is contained in:
Paula Quispe
2017-02-20 16:23:27 -04:00
parent 73bbd23278
commit 47921f0b42

View File

@@ -46,7 +46,7 @@ class AccessControl implements iAuthenticate
500,
'Authentication Class should implement iAuthenticate');
} elseif (!$authObj->{Defaults::$authenticationMethod}()) {
throw new RestException(401);
throw new RestException(403, "You don't have permission to access this endpoint on this server.");
}
} elseif (!$this->verifyAccess(self::$permission)) {
throw new RestException(401);