limited_dev
dcc7634f5e
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
24 lines
No EOL
514 B
Text
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();
|
|
}
|
|
|
|
} |