From 24ca81e91c1cd8ff25bfb5721514b36fb7ff9d1b Mon Sep 17 00:00:00 2001 From: jendib Date: Tue, 24 Nov 2015 00:31:04 +0100 Subject: [PATCH] #41: Storage quota editable only by admin role --- .../java/com/sismics/docs/rest/resource/UserResource.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java index cd9dafab..741283bc 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java @@ -123,8 +123,7 @@ public class UserResource extends BaseResource { @POST public Response update( @FormParam("password") String password, - @FormParam("email") String email, - @FormParam("storage_quota") String storageQuotaStr) { + @FormParam("email") String email) { if (!authenticate()) { throw new ForbiddenClientException(); @@ -140,10 +139,6 @@ public class UserResource extends BaseResource { if (email != null) { user.setEmail(email); } - if (StringUtils.isNotBlank(storageQuotaStr)) { - Long storageQuota = ValidationUtil.validateLong(storageQuotaStr, "storage_quota"); - user.setStorageQuota(storageQuota); - } user = userDao.update(user); // Change the password