From 47921f0b4228860630ba2c3248c8df734a01b97a Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Mon, 20 Feb 2017 16:23:27 -0400 Subject: [PATCH 1/2] 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); From 8e8f466926ad26c096bf96b37da7fa8ec8151217 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Mon, 20 Feb 2017 16:31:27 -0400 Subject: [PATCH 2/2] 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 d55baf08d..f7358b31d 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(403, "You don't have permission to access this endpoint on this server."); + 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);