feat(security): add distributed authorization foundation
This commit is contained in:
@@ -73,8 +73,9 @@ public sealed class QuestionReferenceService(
|
||||
{
|
||||
await accessPolicy.EnsureCanStartAsync(tenantId, cancellationToken);
|
||||
var ownerTenantId = await tenantExecutionScope.ExecuteAsync(
|
||||
tenantId,
|
||||
"Resolve a platform question for an entitled tenant",
|
||||
new SystemScopeRequest(
|
||||
tenantId, SystemScopeCallerType.PublicQuestionBank, nameof(QuestionReferenceService),
|
||||
"Resolve a platform question for an entitled tenant", Guid.NewGuid().ToString("N")),
|
||||
async (provider, token) =>
|
||||
{
|
||||
var systemDbContext = provider.GetRequiredService<TikuDbContext>();
|
||||
|
||||
Reference in New Issue
Block a user