Merged in bugfix/HOR-2715 (pull request #5448)

HOR-2715

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2017-02-21 15:18:35 +00:00
committed by Julio Cesar Laura Avendaño

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 or resource on this server.");
}
} elseif (!$this->verifyAccess(self::$permission)) {
throw new RestException(401);