Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan E. Cook2016-09-09 19:29:35 -0400
committerAngel Avila2016-10-04 21:34:41 -0400
commit1098d0acf9d07d24578e98bf77f4a71fdf2861a4 (patch)
tree4b45c363c3814bb24d3c140a051f202169b8a2bb
parent22a384a83786cc3039bad3fc94e4b1c9222e9765 (diff)
downloadorg.eclipse.osee-1098d0acf9d07d24578e98bf77f4a71fdf2861a4.tar.gz
org.eclipse.osee-1098d0acf9d07d24578e98bf77f4a71fdf2861a4.tar.xz
org.eclipse.osee-1098d0acf9d07d24578e98bf77f4a71fdf2861a4.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 3d2f06ab466..96296cec0ae 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