Added user rights management
This commit is contained in:
parent
f00418d23c
commit
d472889ae1
9 changed files with 419 additions and 17 deletions
|
@ -10,6 +10,12 @@ namespace Lieb.Models
|
|||
[StringLength(40, ErrorMessage = "RoleName too long (40 character limit).")]
|
||||
public string RoleName { get; set; } = string.Empty;
|
||||
|
||||
public bool IsSystemRole { get; set; } = false;
|
||||
|
||||
public int Level { get; set; } = 20;
|
||||
|
||||
public int LevelToAssign { get; set; } = 30;
|
||||
|
||||
public ICollection<RoleAssignment> RoleAssignments { get; set; } = new List<RoleAssignment>();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,11 +8,9 @@ namespace Lieb.Models
|
|||
public int LiebUserId { get; set; }
|
||||
public ulong DiscordUserId { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(40, ErrorMessage = "Name too long (40 character limit).")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[StringLength(60, ErrorMessage = "Pronouns too long (60 character limit).")]
|
||||
public string Pronouns { get; set; } = string.Empty;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue