removing last commit: all owners are treated as equal

Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/983225c6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/983225c6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/983225c6

Branch: refs/heads/develop
Commit: 983225c6040a5dde1e3c8c9b560f3a9ca1084424
Parents: b062491
Author: scnakandala <supun.nakand...@gmail.com>
Authored: Fri Jul 7 12:42:28 2017 -0400
Committer: scnakandala <supun.nakand...@gmail.com>
Committed: Fri Jul 7 12:42:28 2017 -0400

----------------------------------------------------------------------
 .../sharing/registry/db/repositories/UserRepository.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/983225c6/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/UserRepository.java
----------------------------------------------------------------------
diff --git 
a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/UserRepository.java
 
b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/UserRepository.java
index ee1f9b9..ea518ca 100644
--- 
a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/UserRepository.java
+++ 
b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/db/repositories/UserRepository.java
@@ -49,9 +49,9 @@ public class UserRepository extends AbstractRepository<User, 
UserEntity, UserPK>
         query += "s." + DBConstants.SharingTable.ENTITY_ID + " = '" + entityId 
+ "' AND ";
         query += "s." + DBConstants.SharingTable.PERMISSION_TYPE_ID + " = '" + 
permissionTypeId + "'";
 
-//        if(permissionTypeId.equals((new 
PermissionTypeRepository()).getOwnerPermissionTypeIdForDomain(domainId))){
-//            query += "AND s." + DBConstants.SharingTable.SHARING_TYPE + " 
LIKE 'DIRECT_%'";
-//        }
+        if(permissionTypeId.equals((new 
PermissionTypeRepository()).getOwnerPermissionTypeIdForDomain(domainId))){
+            query += "AND s." + DBConstants.SharingTable.SHARING_TYPE + " LIKE 
'DIRECT_%'";
+        }
 
         query += " ORDER BY s.createdTime DESC";
         return select(query, 0, -1);

Reply via email to