Fixed broken build due to last commit.

This commit is contained in:
CoderCow 2013-07-26 00:28:49 +02:00
parent 72939c8876
commit 125884cc4d

View file

@ -99,7 +99,7 @@ namespace Rests
{ Error = "Invalid username/password combination provided. Please re-submit your query with a correct pair." }; { Error = "Invalid username/password combination provided. Please re-submit your query with a correct pair." };
Group userGroup = TShock.Utils.GetGroup(userAccount.Group); Group userGroup = TShock.Utils.GetGroup(userAccount.Group);
if (!userGroup.HasPermission(Permissions.restapi) && userAccount.Group != "superadmin") if (!userGroup.HasPermission(RestPermissions.restapi) && userAccount.Group != "superadmin")
return new RestObject("403") return new RestObject("403")
{ Error = "Although your account was successfully found and identified, your account lacks the permission required to use the API. (restapi)" }; { Error = "Although your account was successfully found and identified, your account lacks the permission required to use the API. (restapi)" };