Remove Utils.GetGroup().

This method duplicates Groups.GetGroupByName().
This commit is contained in:
Lucas Nicodemus 2017-12-29 08:45:29 -07:00
parent 3ac52091ea
commit 332e6b2518
7 changed files with 11 additions and 27 deletions

View file

@ -144,7 +144,7 @@ namespace Rests
return new RestObject("403") { Error = "Username or password may be incorrect or this account may not have sufficient privileges." };
}
Group userGroup = TShock.Utils.GetGroup(userAccount.Group);
Group userGroup = TShock.Groups.GetGroupByName(userAccount.Group);
if (!userGroup.HasPermission(RestPermissions.restapi) && userAccount.Group != "superadmin")
{
AddTokenToBucket(context.RemoteEndPoint.Address.ToString());