Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan E. Cook2016-09-09 23:29:35 +0000
committerAngel Avila2016-09-09 23:29:35 +0000
commitf2d99e20236024c7fc5324db452192cff2e13598 (patch)
treea9e49683300cd32b2456501c6f3611de9a95cfd1
parent3d07d14eb93c11bd6c9b59702668b123160ce6f3 (diff)
downloadorg.eclipse.osee-f2d99e20236024c7fc5324db452192cff2e13598.tar.gz
org.eclipse.osee-f2d99e20236024c7fc5324db452192cff2e13598.tar.xz
org.eclipse.osee-f2d99e20236024c7fc5324db452192cff2e13598.zip
refactor: Fix null comparision always yields false
Change-Id: I11576449c1127509e6f0a3925ab80ca818cbee36 Signed-off-by: Morgan E. Cook <Morgan.e.cook@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java
index 3d2f06ab46..96296cec0a 100644
--- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java
+++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java
@@ -437,18 +437,10 @@ public class AccessControlService implements IAccessControlService {
PermissionEnum groupPermission = accessControlListCache.get(groupPermissionId, accessObject);
if (groupPermission != null) {
- if (userPermission == null) {
- userPermission = groupPermission;
- }
-
if (groupPermission.getRank() > userPermission.getRank()) {
userPermission = groupPermission;
}
}
-
- if (userPermission == null) {
- userPermission = PermissionEnum.DENY;
- }
}
}
return userPermission;

Back to the top