private async Task <bool> HasCurrentUserAccessToContentAsync(IPurchaseOrderCommandRequest poCommandRequest) { if (_contentRestrictionsChecker.HasCurrentUserExplicitNoRestrictions()) { return(true); } var responsibleCode = ""; // todo await _poHelper.GetResponsibleCodeAsync(poCommandRequest.PurchaseOrderId); return(_contentRestrictionsChecker.HasCurrentUserExplicitAccessToContent(responsibleCode)); }
private async Task <bool> HasCurrentUserAccessToContentAsync(ITagCommandRequest tagCommandRequest) { if (_contentRestrictionsChecker.HasCurrentUserExplicitNoRestrictions()) { return(true); } var responsibleCode = await _tagHelper.GetResponsibleCodeAsync(tagCommandRequest.TagId); return(_contentRestrictionsChecker.HasCurrentUserExplicitAccessToContent(responsibleCode)); }