Reporting: Add UserName

This commit is contained in:
2026-02-19 16:37:45 +01:00
parent aae330f46a
commit 235ab23ed4
11 changed files with 137 additions and 101 deletions

View File

@@ -120,7 +120,7 @@ namespace SZUAbsolventenverein.Module.ReportSystem.Services
{
// if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, ModuleId, PermissionNames.Edit))
{
Reporting reporting = await CreateReportAsync(new Reporting {ModuleId = reportable.ModuleID, EntityId = reportable.EntityID, Note = note, Reason = "Default Reason"});
Reporting reporting = await CreateReportAsync(new Reporting {ModuleId = reportable.ModuleID, EntityId = reportable.EntityID, UserName = reportable.UserName, Note = note, Reason = "Default Reason"});
if (reporting != null)
{
_logger.Log(LogLevel.Information, this, LogFunction.Delete, "Reporting recieved {ReportingId}", reporting.ReportingID);