Fixed broken build due to last commit.
This commit is contained in:
parent
72939c8876
commit
125884cc4d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)" };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue