mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-22 05:44:16 +00:00
parent
4323443dbd
commit
4e9b3f8522
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ api.getUser = function(req, res, next) {
|
|||
* Note: custom is for 3rd party apps
|
||||
*/
|
||||
acceptablePUTPaths = _.reduce(require('./../models/user').schema.paths, function(m,v,leaf){
|
||||
if (_.find('tasks achievements filters flags invitations items lastCron party preferences profile stats tags custom'.split(' '), function(root){
|
||||
var found= _.find('tasks achievements filters flags invitations items lastCron party preferences profile stats tags custom'.split(' '), function(root){
|
||||
return leaf.indexOf(root) == 0;
|
||||
});
|
||||
if (found) m[leaf]=true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue