diff --git a/Moonlight.Client/UI/Views/Admin/Users/Index.razor b/Moonlight.Client/UI/Views/Admin/Users/Index.razor index 2141dc0c..6ea127aa 100644 --- a/Moonlight.Client/UI/Views/Admin/Users/Index.razor +++ b/Moonlight.Client/UI/Views/Admin/Users/Index.razor @@ -51,6 +51,9 @@ configuration.WithField(x => x.Email); configuration.WithField(x => x.Password) .WithComponent(component => component.Type = "password"); + + configuration.WithField(x => x.PermissionsJson) + .WithComponent(); }; crudOptions.OnConfigureUpdate = (_, configuration) => diff --git a/Moonlight.Shared/Http/Requests/Admin/Users/CreateUserRequest.cs b/Moonlight.Shared/Http/Requests/Admin/Users/CreateUserRequest.cs index fed2dafd..b50ad161 100644 --- a/Moonlight.Shared/Http/Requests/Admin/Users/CreateUserRequest.cs +++ b/Moonlight.Shared/Http/Requests/Admin/Users/CreateUserRequest.cs @@ -16,4 +16,6 @@ public class CreateUserRequest [MinLength(8, ErrorMessage = "Your password needs to be at least 8 characters long")] [MaxLength(256, ErrorMessage = "Your password should not exceed the length of 256 characters")] public string Password { get; set; } + + public string PermissionsJson { get; set; } = "[]"; } \ No newline at end of file