summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjohn.r.misinco2011-05-03 14:25:53 (EDT)
committerRyan D. Brooks2011-05-03 14:25:53 (EDT)
commit457e93967ab4b065564db05cd43d24c56f40a32d (patch)
tree861b81c0c8129cfdc38da2b513e1bac93d76b9a7
parenta9cd67d24e73870a7fb7b8a6278a72fa55cf76e7 (diff)
downloadorg.eclipse.osee-457e93967ab4b065564db05cd43d24c56f40a32d.zip
org.eclipse.osee-457e93967ab4b065564db05cd43d24c56f40a32d.tar.gz
org.eclipse.osee-457e93967ab4b065564db05cd43d24c56f40a32d.tar.bz2
bug: Fix AccessPolicyHandlerServiceImpl not checking permission parameter
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/internal/AccessPolicyHandlerServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/internal/AccessPolicyHandlerServiceImpl.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/internal/AccessPolicyHandlerServiceImpl.java
index 8bea8c7..5ca4141 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/internal/AccessPolicyHandlerServiceImpl.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/internal/AccessPolicyHandlerServiceImpl.java
@@ -51,7 +51,7 @@ public class AccessPolicyHandlerServiceImpl implements IAccessPolicyHandlerServi
if (artifacts != null) {
for (IBasicArtifact<?> artifact : artifacts) {
- query.attributeTypeMatches(PermissionEnum.WRITE, artifact, attributeType, permissionStatus);
+ query.attributeTypeMatches(permission, artifact, attributeType, permissionStatus);
if (printErrorMessage(artifacts, permissionStatus, level)) {
break;
@@ -68,7 +68,7 @@ public class AccessPolicyHandlerServiceImpl implements IAccessPolicyHandlerServi
if (relationTypeSides != null) {
for (RelationTypeSide relationTypeSide : relationTypeSides) {
- query.relationTypeMatches(PermissionEnum.WRITE, relationTypeSide, permissionStatus);
+ query.relationTypeMatches(permission, relationTypeSide, permissionStatus);
if (printErrorMessage(relationTypeSides, permissionStatus, level)) {
break;