rework policies to use permissions over roles
This commit is contained in:
@@ -7,6 +7,8 @@ public class User : IdentityUser {
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
public List<string> Permissions { get; set; } = [ Permission.SensitiveData_Read, Permission.SensitiveData_Modify ]; // just seeding these here initially
|
||||
|
||||
// properties inherited from IdentityUser:
|
||||
/*
|
||||
AccessFailedCount: Gets or sets the number of failed login attempts for the current user.
|
||||
@@ -49,7 +51,8 @@ public class LoginDto {
|
||||
|
||||
public class UserDto {
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow; // gets compressed to a string
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow; // gets compressed to a string'
|
||||
public List<string> permissions { get; set; } = [];
|
||||
public string? Email { get; set; } = "";
|
||||
public string Id { get; set; } = "";
|
||||
public string? UserName { get; set; } = "";
|
||||
|
||||
Reference in New Issue
Block a user