Block interface operation edit in checkedin VFC
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / impl / ComponentInterfaceOperationBusinessLogic.java
index 461edd1..eb8b35e 100644 (file)
@@ -166,11 +166,13 @@ public class ComponentInterfaceOperationBusinessLogic extends BaseBusinessLogic
     }
 
     public Optional<Component> updateResourceInterfaceOperation(final String componentId,
+                                                                final String user,
                                                                 final InterfaceDefinition interfaceDefinition,
                                                                 final ComponentTypeEnum componentTypeEnum,
                                                                 final Wrapper<ResponseFormat> errorWrapper,
                                                                 final boolean shouldLock) throws BusinessLogicException {
         final var component = getComponent(componentId);
+        validateCanWorkOnComponent(component, user);
         ResponseFormat responseFormat;
 
         Map<String, InterfaceDefinition> componentInterfaceMap = component.getInterfaces();