removed Meteor Error copy-pasted problem

removeAvatar -> saveUserProfile
pull/2478/head
Mitja Jež 10 years ago
parent ff719e4114
commit c8e1ae32eb
  1. 2
      server/methods/saveUserProfile.coffee

@ -1,7 +1,7 @@
Meteor.methods
saveUserProfile: (settings) ->
unless RocketChat.settings.get("Accounts_AllowUserProfileChange")
throw new Meteor.Error(403, "[methods] resetAvatar -> Invalid access")
throw new Meteor.Error(403, "[methods] saveUserProfile -> Invalid access")
if Meteor.userId()
if settings.language?

Loading…
Cancel
Save