mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
@@ -277,6 +277,9 @@ namespace Tgstation.Server.Host.Controllers
|
||||
else
|
||||
{
|
||||
var canonicalUserName = Models.User.CanonicalizeName(ApiHeaders.Username);
|
||||
if (canonicalUserName == Models.User.CanonicalizeName(Models.User.TgsSystemUserName))
|
||||
return Unauthorized();
|
||||
|
||||
if (systemIdentity == null)
|
||||
query = query.Where(x => x.CanonicalName == canonicalUserName);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user