aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-item-permissions-lib
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-06-19 09:23:42 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-06-19 11:16:56 +0000
commit473c167f6589b446e8c6491dc7940c3142beb740 (patch)
tree57e55afc046b56870efe55dd41f3448e4be1e9e8 /openecomp-be/lib/openecomp-item-permissions-lib
parent6152e450f7164c0a8e84da63e354c8c0ffccb237 (diff)
Remove duplicate code
Removing duplicate code. Issue-ID: SDC-3132 Signed-off-by: xuegao <xg353y@intl.att.com> Change-Id: I595a791ebd7cb160d7149ea92a6434d52cfc9f48
Diffstat (limited to 'openecomp-be/lib/openecomp-item-permissions-lib')
-rw-r--r--openecomp-be/lib/openecomp-item-permissions-lib/openecomp-item-permissions-impl/src/main/java/org/openecomp/sdc/itempermissions/impl/PermissionsRulesImpl.java18
1 files changed, 1 insertions, 17 deletions
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;
}