mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
changes
This commit is contained in:
committed by
Sabe Jones
parent
a50c0eb1e7
commit
c18e06f071
@@ -102,7 +102,7 @@ export default async function purchase (user, req = {}, analytics) {
|
||||
if (!matchers.match(item.key)) {
|
||||
throw new NotAuthorized(i18n.t('messageNotAvailable', req.language));
|
||||
}
|
||||
} else if (item.event && item.event.gear) {
|
||||
} else if (item.end && item.event.gear) {
|
||||
const matchers = getScheduleMatchingGroup('seasonalGear');
|
||||
if (!matchers.match(item.set)) {
|
||||
throw new NotAuthorized(i18n.t('messageNotAvailable', req.language));
|
||||
|
||||
Reference in New Issue
Block a user