mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-30 00:38:38 +00:00
Use permission level model for permissions
This is better. Because having 20 fucking columns for permissions is STUPID.
This commit is contained in:
parent
1b5e58dd80
commit
8301418085
16 changed files with 542 additions and 433 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue