mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 07:22:35 -07:00
User perms
This commit is contained in:
parent
624b32d926
commit
6d1eef9154
17 changed files with 524 additions and 104 deletions
|
@ -10,17 +10,20 @@ namespace PlexRequests.UI.Models
|
|||
public UserManagementUsersViewModel()
|
||||
{
|
||||
PlexInfo = new UserManagementPlexInformation();
|
||||
Permissions = new List<CheckBox>();
|
||||
Features = new List<CheckBox>();
|
||||
}
|
||||
public string Username { get; set; }
|
||||
public string Claims { get; set; }
|
||||
public string FeaturesFormattedString { get; set; }
|
||||
public string PermissionsFormattedString { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string Alias { get; set; }
|
||||
public UserType Type { get; set; }
|
||||
public string EmailAddress { get; set; }
|
||||
public UserManagementPlexInformation PlexInfo { get; set; }
|
||||
public string[] ClaimsArray { get; set; }
|
||||
public List<UserManagementUpdateModel.ClaimsModel> ClaimsItem { get; set; }
|
||||
public DateTime LastLoggedIn { get; set; }
|
||||
public List<CheckBox> Permissions { get; set; }
|
||||
public List<CheckBox> Features { get; set; }
|
||||
}
|
||||
|
||||
public class UserManagementPlexInformation
|
||||
|
@ -33,6 +36,13 @@ namespace PlexRequests.UI.Models
|
|||
public List<UserManagementPlexServers> Servers { get; set; }
|
||||
}
|
||||
|
||||
public class CheckBox
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int Value { get; set; }
|
||||
public bool Selected { get; set; }
|
||||
}
|
||||
|
||||
public class UserManagementPlexServers
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
@ -50,8 +60,10 @@ namespace PlexRequests.UI.Models
|
|||
public string Username { get; set; }
|
||||
[JsonProperty("password")]
|
||||
public string Password { get; set; }
|
||||
[JsonProperty("claims")]
|
||||
public string[] Claims { get; set; }
|
||||
[JsonProperty("permissions")]
|
||||
public List<string> Permissions { get; set; }
|
||||
[JsonProperty("features")]
|
||||
public List<string> Features { get; set; }
|
||||
|
||||
[JsonProperty("email")]
|
||||
public string EmailAddress { get; set; }
|
||||
|
@ -61,20 +73,10 @@ namespace PlexRequests.UI.Models
|
|||
{
|
||||
[JsonProperty("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonProperty("claims")]
|
||||
public List<ClaimsModel> Claims { get; set; }
|
||||
|
||||
[JsonProperty("permissions")]
|
||||
public List<CheckBox> Permissions { get; set; }
|
||||
public string Alias { get; set; }
|
||||
public string EmailAddress { get; set; }
|
||||
|
||||
public class ClaimsModel
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("selected")]
|
||||
public bool Selected { get; set; }
|
||||
}
|
||||
|
||||
public string EmailAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue