refactor(EnvelopeController): add read-only region

This commit is contained in:
2025-09-18 17:22:40 +02:00
parent 643501f484
commit 2e6eeafd74

View File

@@ -67,10 +67,10 @@ public class EnvelopeController : ViewControllerBase
return this.ViewDocumentNotFound();
}
#region Read Only
if (decoded.GetEncodeType() == EncodeType.EnvelopeReceiverReadOnly)
return await EnvelopeReceiverReadOnly(decoded.ParseReadOnlyId());
ViewData["EnvelopeKey"] = envelopeReceiverId;
#endregion
var er = await _mediator.ReadEnvelopeReceiverAsync(envelopeReceiverId);
@@ -123,6 +123,8 @@ public class EnvelopeController : ViewControllerBase
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
public async Task<IActionResult> EnvelopeLocked(EnvelopeReceiverDto er, CancellationToken cancel)
{
ViewData["EnvelopeKey"] = envelopeReceiverId;
try
{
if (er is null)