From 473c167f6589b446e8c6491dc7940c3142beb740 Mon Sep 17 00:00:00 2001 From: xuegao Date: Fri, 19 Jun 2020 09:23:42 +0200 Subject: Remove duplicate code Removing duplicate code. Issue-ID: SDC-3132 Signed-off-by: xuegao Change-Id: I595a791ebd7cb160d7149ea92a6434d52cfc9f48 --- .../sdc/itempermissions/impl/PermissionsRulesImpl.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/src/main') diff --git a/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/src/main/java/org/openecomp/sdc/itempermissions/impl/PermissionsRulesImpl.java b/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/src/main/java/org/openecomp/sdc/itempermissions/impl/PermissionsRulesImpl.java index 2ab9326f6a..222ed000ae 100644 --- a/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/src/main/java/org/openecomp/sdc/itempermissions/impl/PermissionsRulesImpl.java +++ b/openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/src/main/java/org/openecomp/sdc/itempermissions/impl/PermissionsRulesImpl.java @@ -55,18 +55,9 @@ public class PermissionsRulesImpl implements PermissionsRules { return true; case Edit_Item: - if (permission.equals(PermissionTypes.Contributor.name()) || permission.equals - (PermissionTypes.Owner.name())) { - return true; - } - break; case Commit_Item: - if (permission.equals(PermissionTypes.Contributor.name()) || permission.equals - (PermissionTypes.Owner.name())) { - return true; - } - break; case Delete_Item: + case Submit_Item: if (permission.equals(PermissionTypes.Contributor.name()) || permission.equals (PermissionTypes.Owner.name())) { return true; @@ -79,13 +70,6 @@ public class PermissionsRulesImpl implements PermissionsRules { } break; - case Submit_Item: - if (permission.equals(PermissionTypes.Contributor.name()) || permission.equals - (PermissionTypes.Owner.name())) { - return true; - } - break; - default: return false; } -- cgit 1.2.3-korg