mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Adds authorization roles administrator dashboard
This commit is contained in:
1 parent
290af03c83
commit
1df31515fb
191 files changed
+6189
-806
No files matched your search
@@ -24,11 +24,6 @@ public class PermissionEntity : IStorageEntity, IAuditableEntity
|
||||
/// </summary>
|
||||
public required AuthorizationPermission PermissionName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the description of the permission.
|
||||
/// </summary>
|
||||
public string? PermissionDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the collection of role permission associations that include this permission.
|
||||
/// </summary>
|
||||
@@ -42,12 +37,12 @@ public class PermissionEntity : IStorageEntity, IAuditableEntity
|
||||
/// <summary>
|
||||
/// Gets or sets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
public required DateTime CreatedOnUtc { get; set; }
|
||||
public DateTime CreatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the user that created the entity.
|
||||
/// </summary>
|
||||
public required Guid CreatedBy { get; set; }
|
||||
public Guid CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional time and date when the entity was updated.
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Lumina.Application.Common.DataAccess.Entities.Authorization;
|
||||
/// Repository entity for a permission in the authorization system.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("RoleName: {RoleName}")]
|
||||
public class RoleEntity : IStorageEntity
|
||||
public class RoleEntity : IStorageEntity, IAuditableEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Id of the role.
|
||||
@@ -22,12 +22,7 @@ public class RoleEntity : IStorageEntity
|
||||
/// <summary>
|
||||
/// Gets the name of the role.
|
||||
/// </summary>
|
||||
public required AuthorizationRole RoleName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the description of the role.
|
||||
/// </summary>
|
||||
public string? RoleDescription { get; set; }
|
||||
public required string RoleName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the collection of user roles associations that include this role.
|
||||
@@ -42,12 +37,12 @@ public class RoleEntity : IStorageEntity
|
||||
/// <summary>
|
||||
/// Gets or sets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
public required DateTime CreatedOnUtc { get; set; }
|
||||
public DateTime CreatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the user that created the entity.
|
||||
/// </summary>
|
||||
public required Guid CreatedBy { get; set; }
|
||||
public Guid CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional time and date when the entity was updated.
|
||||
|
||||
+2
-2
@@ -40,12 +40,12 @@ public class RolePermissionEntity : IStorageEntity, IAuditableEntity
|
||||
/// <summary>
|
||||
/// Gets or sets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
public required DateTime CreatedOnUtc { get; set; }
|
||||
public DateTime CreatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the user that created the entity.
|
||||
/// </summary>
|
||||
public required Guid CreatedBy { get; set; }
|
||||
public Guid CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional time and date when the entity was updated.
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@ using System.Diagnostics;
|
||||
namespace Lumina.Application.Common.DataAccess.Entities.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Data Transfer object containing all the authorization info of a user.
|
||||
/// Data Transfer Object containing all the authorization info of a user.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public class UserAuthorizationEntity
|
||||
@@ -21,7 +21,7 @@ public class UserAuthorizationEntity
|
||||
/// <summary>
|
||||
/// Gets the collection of roles associated to the user.
|
||||
/// </summary>
|
||||
public required IReadOnlySet<AuthorizationRole> Roles { get; init; }
|
||||
public required IReadOnlySet<string> Roles { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the collection of permissions associated to the user.
|
||||
|
||||
+2
-2
@@ -41,12 +41,12 @@ public class UserPermissionEntity : IStorageEntity, IAuditableEntity
|
||||
/// <summary>
|
||||
/// Gets or sets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
public required DateTime CreatedOnUtc { get; set; }
|
||||
public DateTime CreatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the user that created the entity.
|
||||
/// </summary>
|
||||
public required Guid CreatedBy { get; set; }
|
||||
public Guid CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional time and date when the entity was updated.
|
||||
|
||||
@@ -41,12 +41,12 @@ public class UserRoleEntity : IStorageEntity, IAuditableEntity
|
||||
/// <summary>
|
||||
/// Gets or sets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
public required DateTime CreatedOnUtc { get; set; }
|
||||
public DateTime CreatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the user that created the entity.
|
||||
/// </summary>
|
||||
public required Guid CreatedBy { get; set; }
|
||||
public Guid CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional time and date when the entity was updated.
|
||||
|
||||
@@ -63,12 +63,12 @@ public class UserEntity : IStorageEntity, IAuditableEntity
|
||||
/// <summary>
|
||||
/// Gets the time and date when the entity was added.
|
||||
/// </summary>
|
||||
public required DateTime CreatedOnUtc { get; set; }
|
||||
public DateTime CreatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the user that created the entity.
|
||||
/// </summary>
|
||||
public required Guid CreatedBy { get; set; }
|
||||
public Guid CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the optional time and date when the entity was updated.
|
||||
|
||||
Reference in new issue
Block a user