mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-19 03:31:29 +00:00
Add ability to change user's permissions from admin panel user list
This commit is contained in:
parent
ff12f5f7d5
commit
1037a6eddb
6 changed files with 44 additions and 3 deletions
|
@ -34,7 +34,7 @@ public class AdminBanUserPage : BaseLayout
|
|||
this.TargetedUser = await this.Database.Users.FirstOrDefaultAsync(u => u.UserId == id);
|
||||
if (this.TargetedUser == null) return this.NotFound();
|
||||
|
||||
this.TargetedUser.PermissionLevel = PermissionLevel.Default;
|
||||
this.TargetedUser.PermissionLevel = PermissionLevel.Banned;
|
||||
this.TargetedUser.BannedReason = reason;
|
||||
|
||||
// invalidate all currently active gametokens
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue