mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
* Added check for wacky pet before feeding * added test for feeding wacky pets * Fixed typo in test for feeding wacky pets Co-authored-by: Jack Somers <somersjw9@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ export default function feed (user, req = {}, analytics) {
|
||||
throw new NotFound(i18n.t('messageFoodNotFound', req.language));
|
||||
}
|
||||
|
||||
if (pet.type === 'special') {
|
||||
if (pet.type === 'special' || pet.type === 'wacky') {
|
||||
throw new NotAuthorized(i18n.t('messageCannotFeedPet', req.language));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user