This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 2_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git
commit 7bbe72ca1012ddaae0275ff70a892b02b7191aae Author: Francesco Chicchiriccò <[email protected]> AuthorDate: Thu Apr 23 09:31:24 2020 +0200 No need to check admin rights on Resource when only listing connector objects --- .../src/main/java/org/apache/syncope/core/logic/ResourceLogic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java b/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java index d5837fc..a18a43d 100644 --- a/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java +++ b/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java @@ -296,7 +296,7 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> { private Triple<ExternalResource, AnyType, Provision> connObjectInit( final String resourceKey, final String anyTypeKey) { - ExternalResource resource = resourceDAO.authFind(resourceKey); + ExternalResource resource = resourceDAO.find(resourceKey); if (resource == null) { throw new NotFoundException("Resource '" + resourceKey + "'"); } @@ -377,7 +377,7 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> { ObjectClass objectClass; OperationOptions options; if (SyncopeConstants.REALM_ANYTYPE.equals(anyTypeKey)) { - resource = resourceDAO.authFind(key); + resource = resourceDAO.find(key); if (resource == null) { throw new NotFoundException("Resource '" + key + "'"); }
