示例#1
0
        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));
        }