Skip to content

Commit 4b541b2

Browse files
author
Vadim Belov
committed
Update UserRole enum values and replace Unknown with None
Replaced the Unknown value with None (set to 0) in the UserRole enum to represent the absence of options. Adjusted User and Admin values to 1 and 2, respectively, and updated related documentation comments accordingly.
1 parent d7a7112 commit 4b541b2

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Sources/EasyExtensions/Models/Enums/UserRole.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ namespace EasyExtensions.Models.Enums
1212
public enum UserRole
1313
{
1414
/// <summary>
15-
/// Indicates that the value is unknown or not specified.
15+
/// Indicates that no options are set.
1616
/// </summary>
17-
/// <remarks>Use this value when the actual value cannot be determined or is not applicable. This
18-
/// is typically used as a default or placeholder value.</remarks>
19-
Unknown = 1,
17+
None = 0,
2018

2119
/// <summary>
2220
/// Represents a standard user account with typical permissions and access rights.
2321
/// </summary>
24-
User = 2,
22+
User = 1,
2523

2624
/// <summary>
2725
/// Specifies an administrator role with elevated permissions.
2826
/// </summary>
29-
Admin = 4,
27+
Admin = 2,
3028
}
3129
}

0 commit comments

Comments
 (0)