Exemplo n.º 1
0
        async private Task <bool> IsAccessAllowed(IIdentity identity, IMapService service)
        {
            var accessType = await service.GetAccessTypes(identity);

            return(accessType.HasFlag(AccessTypes.Map) || accessType.HasFlag(AccessTypes.Query) || accessType.HasFlag(AccessTypes.Edit));
        }