Use permission level model for permissions

This is better. Because having 20 fucking columns for permissions is STUPID.
This commit is contained in:
jvyden 2022-05-22 15:51:02 -04:00
commit 8301418085
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
16 changed files with 542 additions and 433 deletions

View file

@ -13,7 +13,7 @@
Model.Description = Model.ProfileUser!.Biography;
}
@if (Model.ProfileUser.Banned)
@if (Model.ProfileUser.IsBanned)
{
<div class="ui inverted red segment">
<h2>User is currently banned!</h2>
@ -120,7 +120,7 @@
<div class="ui yellow segment">
<h2>Admin Options</h2>
@if (!Model.ProfileUser.Banned)
@if (!Model.ProfileUser.IsBanned)
{
<div>
<a class="ui red button" href="/admin/user/@Model.ProfileUser.UserId/ban">