Update VerificationSettingsDialog: restrict image viewing button to admin and ambassador users, and enhance delete confirmation message

This commit is contained in:
a.beging@eas-solutions.de
2026-04-23 09:17:40 +02:00
parent 04084b4bf7
commit cad9617451
2 changed files with 9 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ namespace FoodsharingSiegen.Server.Dialogs
{
if (Prospect == null) return;
await ConfirmDialog.ShowAsync(ModalService, "Bilder Löschen", "Sollen alle Identitätsprüfungsbilder dieses Users unwiderruflich gelöscht werden?", async () =>
await ConfirmDialog.ShowAsync(ModalService, "Bilder Löschen", $"Sollen alle Identitätsprüfungsbilder von {Prospect.Name} unwiderruflich gelöscht werden?", async () =>
{
var result = await ProspectService.DeleteVerificationImagesAsync(Prospect.Id);
if (result.Success)