Add ability to change user's permissions from admin panel user list

This commit is contained in:
jvyden 2022-06-10 17:02:02 -04:00
parent ff12f5f7d5
commit 1037a6eddb
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
6 changed files with 44 additions and 3 deletions

View file

@ -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