This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 2186050  No need to check admin rights on Resource when only listing 
connector objects
2186050 is described below

commit 21860508ec0f42000e27374b322259e0413ff6df
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Thu Apr 23 09:33:10 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/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java 
b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
index 08d3df0..1eb41fd 100644
--- 
a/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
+++ 
b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
@@ -270,7 +270,7 @@ public class ResourceLogic extends 
AbstractTransactionalLogic<ResourceTO> {
     }
 
     private Provision getProvision(final String resourceKey, final String 
anyTypeKey) {
-        ExternalResource resource = resourceDAO.authFind(resourceKey);
+        ExternalResource resource = resourceDAO.find(resourceKey);
         if (resource == null) {
             throw new NotFoundException("Resource '" + resourceKey + '\'');
         }
@@ -384,7 +384,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 + '\'');
             }

Reply via email to