mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Groups can prevent members from getting gems (#8870)
* add possibility for group to block members from getting gems * fixes * fix tests * adds some tests * unit tests * finish unit tests * remove old code
This commit is contained in:
committed by
Sabe Jones
parent
fe9521a63f
commit
78ba596504
@@ -27,7 +27,7 @@ api.checkout = {
|
||||
let gift = req.query.gift ? JSON.parse(req.query.gift) : undefined;
|
||||
req.session.gift = req.query.gift;
|
||||
|
||||
let link = await paypalPayments.checkout({gift});
|
||||
let link = await paypalPayments.checkout({gift, user: res.locals.user});
|
||||
|
||||
if (req.query.noRedirect) {
|
||||
res.respond(200);
|
||||
|
||||
Reference in New Issue
Block a user