Fixing code
This commit is contained in:
parent
4b8966d907
commit
4ece437d1b
|
@ -92,6 +92,7 @@ public class SharingManager {
|
|||
@PathParam(AccessPath.CONTEXT_UUID_PATH_PARAM) String contextId,
|
||||
@QueryParam(SharingPath.OPERATION_QUERY_PARAMETER) SharingOperation operation,
|
||||
@QueryParam(SharingPath.DRY_RUN_QUERY_PARAMETER) @DefaultValue("false") Boolean dryRun,
|
||||
@QueryParam(SharingPath.FORCE_ADD_TO_CONTEXT_QUERY_PARAMETER) @DefaultValue("false") Boolean forceAddToContext,
|
||||
String body)
|
||||
throws SchemaViolationException, ResourceNotFoundException, ContextNotFoundException, ResourceRegistryException {
|
||||
|
||||
|
@ -201,8 +202,8 @@ public class SharingManager {
|
|||
|
||||
|
||||
if(operation == SharingOperation.ADD) {
|
||||
((ERManagement) elementManagement).addToContext(contextUUID);
|
||||
((ERManagement) elementManagement).setForceAddToContext(forceAddToContext);
|
||||
((ERManagement) elementManagement).addToContext(contextUUID);
|
||||
}else {
|
||||
((ERManagement) elementManagement).removeFromContext(contextUUID);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue