Merge branch 'sabrecat/fixes-202302' into release

This commit is contained in:
SabreCat 2023-01-31 10:51:41 -06:00
commit b59fcd203b
2 changed files with 5 additions and 1 deletions

View file

@ -68,6 +68,7 @@ api.createGroupTasks = {
category: 'behavior',
taskType: task.type,
groupID: group._id,
headers: req.headers,
});
});
},
@ -255,6 +256,7 @@ api.assignTask = {
category: 'behavior',
taskType: task.type,
groupID: group._id,
headers: req.headers,
});
},
};

View file

@ -97,7 +97,9 @@ function checkPreferencePurchase (user, path, item) {
const itemPath = `${path}.${item}`;
const appearance = _.get(common.content.appearances, itemPath);
if (!appearance) return false;
if (appearance.price === 0) return true;
if (appearance.price === 0 && path !== 'background') {
return true;
}
return _.get(user.purchased, itemPath);
}