ConGroups are gone. Long live admin flags in content.
This commit is contained in:
@@ -217,6 +217,15 @@ namespace Content.Server.Database
|
||||
*/
|
||||
public abstract Task AddConnectionLogAsync(NetUserId userId, string userName, IPAddress address);
|
||||
|
||||
/*
|
||||
* ADMIN STUFF
|
||||
*/
|
||||
public async Task<Admin?> GetAdminDataForAsync(NetUserId userId)
|
||||
{
|
||||
await using var db = await GetDb();
|
||||
|
||||
return await db.DbContext.Admin.SingleOrDefaultAsync(p => p.UserId == userId.UserId);
|
||||
}
|
||||
|
||||
protected abstract Task<DbGuard> GetDb();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user