mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Further transition from HTTP to HTTPS (#14039)
This commit is contained in:
@@ -58,7 +58,7 @@ const updatablePaths = [
|
||||
];
|
||||
|
||||
// This tells us for which paths users can call `PUT /user`.
|
||||
// The trick here is to only accept leaf paths, not root/intermediate paths (see http://goo.gl/OEzkAs)
|
||||
// The trick here is to only accept leaf paths, not root/intermediate paths (see https://goo.gl/OEzkAs)
|
||||
const acceptablePUTPaths = _.reduce(UserSchema.paths, (accumulator, val, leaf) => {
|
||||
const found = _.find(updatablePaths, rootPath => leaf.indexOf(rootPath) === 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user