mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-06-23 15:41:26 +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
|
@ -74,7 +74,7 @@ public class LoginController : ControllerBase
|
|||
|
||||
User? user = await this.database.UserFromGameToken(token, true);
|
||||
|
||||
if (user == null || user.Banned)
|
||||
if (user == null || user.IsBanned)
|
||||
{
|
||||
Logger.Error($"Unable to find user {npTicket.Username} from token", LogArea.Login);
|
||||
return this.StatusCode(403, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue