Refactor constant imports and enhance safety checks
Updated constant imports from static to regular usage across multiple controllers. Improved null safety in `DebugEnvelopes.cshtml` by ensuring the `Receivers` property is not null before access. Modified authorization attribute in `DocumentController.cs` to directly reference `Domain.Constants.ReceiverRole.FullyAuth`.
This commit is contained in:
@@ -4,7 +4,7 @@ using EnvelopeGenerator.Application.Dto.EnvelopeReceiverReadOnly;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
using static EnvelopeGenerator.Domain.Constants;
|
||||
using EnvelopeGenerator.Domain.Constants;
|
||||
using EnvelopeGenerator.Web.Extensions;
|
||||
|
||||
namespace EnvelopeGenerator.Web.Controllers
|
||||
|
||||
Reference in New Issue
Block a user