diff --git a/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLeave.java b/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLeave.java index f21ed8c..9aae752 100644 --- a/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLeave.java +++ b/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLeave.java @@ -14,18 +14,12 @@ public class POSTUserLeave implements Route { @Override public Object handle(Request req, Response res) throws Exception { User user = User.byId(req.params("id")); - Actor actor = req.attribute("actor"); - - if (actor.getType() != ActorType.SERVER) { - return ErrorUtils.serverOnly(); - } if (user == null) { return ErrorUtils.notFound("User", req.params("id")); } user.leftServer(); - APIv3.getDatastore().save(user); return user; }