Replaced all usages of ReceiverRole with the new Role class in EnvelopeGenerator.Domain.Constants. Removed ReceiverRole.cs and added Role.cs with PreAuth and FullyAuth constants. Updated all [Authorize] attributes and role checks in controllers and authentication logic to use Role.FullyAuth and Role.PreAuth. This centralizes role management for improved maintainability and clarity.
8 lines
194 B
C#
8 lines
194 B
C#
namespace EnvelopeGenerator.Domain.Constants
|
|
{
|
|
public static class Role
|
|
{
|
|
public const string PreAuth = "PreAuth";
|
|
public const string FullyAuth = "FullyAuth";
|
|
}
|
|
} |