mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added groups view model, implemented basic groups table view
This commit is contained in:
@@ -7,12 +7,14 @@ namespace Berufsschule_HAM.Models;
|
||||
public class GroupModel
|
||||
{
|
||||
public required string Cn { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string? GidNumber { get; set; }
|
||||
public List<GroupPermission> Permissions { get; set; }
|
||||
public GroupModel(Dictionary<string, string> ldapData)
|
||||
{
|
||||
Cn = ldapData.GetValueOrDefault("cn") ?? throw new GroupModelConfigurationException();
|
||||
GidNumber = ldapData.GetValueOrDefault("gidNumber");
|
||||
DisplayName = ldapData.GetValueOrDefault("displayName") ?? Cn;
|
||||
string? descriptionValue = ldapData.GetValueOrDefault("description");
|
||||
if (descriptionValue is null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user