Exemplo n.º 1
0
        private async Task <bool> HasCurrentUserAccessToContentAsync(IPurchaseOrderCommandRequest poCommandRequest)
        {
            if (_contentRestrictionsChecker.HasCurrentUserExplicitNoRestrictions())
            {
                return(true);
            }

            var responsibleCode = ""; // todo await _poHelper.GetResponsibleCodeAsync(poCommandRequest.PurchaseOrderId);

            return(_contentRestrictionsChecker.HasCurrentUserExplicitAccessToContent(responsibleCode));
        }
Exemplo n.º 2
0
        private async Task <bool> HasCurrentUserAccessToContentAsync(ITagCommandRequest tagCommandRequest)
        {
            if (_contentRestrictionsChecker.HasCurrentUserExplicitNoRestrictions())
            {
                return(true);
            }

            var responsibleCode = await _tagHelper.GetResponsibleCodeAsync(tagCommandRequest.TagId);

            return(_contentRestrictionsChecker.HasCurrentUserExplicitAccessToContent(responsibleCode));
        }