1
0
mirror of synced 2025-02-05 14:15:28 +01:00

15 lines
361 B
C#
Raw Normal View History

2024-03-16 17:46:06 +08:00
namespace TaikoWebUI.Pages;
2022-09-12 00:33:58 +08:00
public partial class Users
2022-09-12 00:33:58 +08:00
{
2024-05-16 23:32:46 +01:00
private List<User>? users;
2022-09-12 00:33:58 +08:00
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
2024-05-16 23:32:46 +01:00
if (AuthService.IsAdmin || !AuthService.LoginRequired)
{
users = await Client.GetFromJsonAsync<List<User>>("api/Users");
}
2022-09-12 00:33:58 +08:00
}
}