From 8b6e5215fd88ab38465bf003c8850f42c0a2005d Mon Sep 17 00:00:00 2001 From: Sacha Greif Date: Sun, 28 Sep 2014 08:46:20 +0900 Subject: [PATCH] fix #441 --- collections/users.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/collections/users.js b/collections/users.js index dad5676c6..08ec26688 100644 --- a/collections/users.js +++ b/collections/users.js @@ -48,10 +48,11 @@ Schema.User = new SimpleSchema({ Meteor.users.deny({ update: function(userId, post, fieldNames) { + console.log(fieldNames) if(isAdminById(userId)) return false; // deny the update if it contains something other than the profile field - return (_.without(fieldNames, 'profile').length > 0); + return (_.without(fieldNames, 'profile', 'username', 'slug').length > 0); } });