From 125884cc4d89322b5811616db0b4618cfb4de70e Mon Sep 17 00:00:00 2001 From: CoderCow Date: Fri, 26 Jul 2013 00:28:49 +0200 Subject: [PATCH] Fixed broken build due to last commit. --- TShockAPI/Rest/SecureRest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Rest/SecureRest.cs b/TShockAPI/Rest/SecureRest.cs index 0daeb424..2b721512 100644 --- a/TShockAPI/Rest/SecureRest.cs +++ b/TShockAPI/Rest/SecureRest.cs @@ -99,7 +99,7 @@ namespace Rests { Error = "Invalid username/password combination provided. Please re-submit your query with a correct pair." }; 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") { Error = "Although your account was successfully found and identified, your account lacks the permission required to use the API. (restapi)" };