From 47921f0b4228860630ba2c3248c8df734a01b97a Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Mon, 20 Feb 2017 16:23:27 -0400 Subject: [PATCH] HOR-2715 --- workflow/engine/src/ProcessMaker/Policies/AccessControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/Policies/AccessControl.php b/workflow/engine/src/ProcessMaker/Policies/AccessControl.php index c08817c0b..d55baf08d 100644 --- a/workflow/engine/src/ProcessMaker/Policies/AccessControl.php +++ b/workflow/engine/src/ProcessMaker/Policies/AccessControl.php @@ -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);