mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Centralizes audit column ownership in the auditing interceptor
Removes explicit audit assignments from mappings, handlers, repositories, seeding, and background jobs, leaving the auditing interceptor as the only writer of the audit columns for ordinary saves. Adds a one-time initialization save so setup can attribute the original admin account and seeded rows to the SYSTEM audit identity, while ordinary anonymous writes remain unattributed with Guid.Empty.
This commit is contained in:
1 parent
b56fabf5df
commit
7253f1507c
98 files changed
+731
-516
No files matched your search
+1
-1
@@ -413,7 +413,7 @@ public class StartConsumptionEndpointTests : IClassFixture<AuthenticatedLuminaAp
|
||||
{
|
||||
using IServiceScope scope = _apiFactory.Services.CreateScope();
|
||||
IDataSeedService dataSeedService = scope.ServiceProvider.GetRequiredService<IDataSeedService>();
|
||||
await dataSeedService.SetDefaultAuthorizationRolesAsync(userId, CancellationToken.None);
|
||||
await dataSeedService.SetDefaultAuthorizationRolesAsync(CancellationToken.None);
|
||||
await dataSeedService.SetAdminRoleToAdministratorAccount(userId, CancellationToken.None);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user