mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix #441
This commit is contained in:
parent
eeb961d905
commit
8b6e5215fd
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue