bulletboards/ImageBoardServerApp/Pages/Moderation/UsersPage.razor
limited_dev dcc7634f5e feat: The posts are now sorted
fix: modmenu now checks for the permission, you now have to be 18yo to access the boards, images now get deleted when deleting threads / posts, fixed grammar error in the register page, other fixed which i forget
2023-02-13 18:45:14 +01:00

24 lines
No EOL
514 B
Text

@page "/sys/users"
@using ImageBoardServerApp.Data.Repository
<AuthorizeView Roles="Admin">
<Authorized>
<h3>Users</h3>
@foreach (var u in users)
{
<UserEntry user="u"/>
<hr/>
}
</Authorized>
<NotAuthorized>
<DeadLink/>
</NotAuthorized>
</AuthorizeView>
@code {
private List<UserData> users { get; set; }
protected override async Task OnInitializedAsync()
{
users = await UsersRepository.getUsersAsync();
}
}