Merge 'origin/fix-alias-deletion-654' into fix-alias-deletion-654

This commit is contained in:
Cnly 2019-07-25 18:33:28 +08:00
commit ea101a5674

View file

@ -182,7 +182,7 @@ func RemoveLocalAlias(
if creatorQueryRes.UserID == "" {
return util.JSONResponse{
Code: http.StatusNotFound,
JSON: jsonerror.NotFound("alias does not exist"),
JSON: jsonerror.NotFound("Alias does not exist"),
}
}
@ -190,7 +190,7 @@ func RemoveLocalAlias(
// TODO: Still allow deletion if user is admin
return util.JSONResponse{
Code: http.StatusForbidden,
JSON: jsonerror.Forbidden("you do not have permission to delete this alias"),
JSON: jsonerror.Forbidden("You do not have permission to delete this alias"),
}
}