mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
code from abandoned PR #13382
This commit is contained in:
@@ -53,7 +53,7 @@ export class BuyQuestWithGoldOperation extends AbstractGoldItemOperation { // es
|
||||
|
||||
checkPrerequisites (user, questKey) {
|
||||
const item = content.quests[questKey];
|
||||
if (questKey === 'lostMasterclasser1' && !this.userAbleToStartMasterClasser(user)) {
|
||||
if (questKey.startsWith('lostMasterclasser') && !this.userAbleToStartMasterClasser(user)) {
|
||||
throw new NotAuthorized(this.i18n('questUnlockLostMasterclasser'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user