public async Task <bool> hasAccess(Structure structure, string userId) { Drawing drawing = await _structureService.GetDrawingAsync(structure); return(await _drawingService.IsOwnerAsync(drawing.Id, userId) || await _drawingService.IsSharedWithAsync(drawing.Id, userId)); }