[ljcom] r12420: LJSUP-13202: Check is_user_eligible for ...
Committer: nnikulochkina
LJSUP-13202: Check is_user_eligible for account and blockingU trunk/bin/upgrading/en_LJ.dat U trunk/cgi-bin/LJ/Pay/Wallet/Error.pm U trunk/cgi-bin/LJ/Pay/Wallet.pm
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat 2012-08-06 06:35:49 UTC (rev 12419)
+++ trunk/bin/upgrading/en_LJ.dat 2012-08-06 08:20:47 UTC (rev 12420)
@@ -6037,8 +6037,10 @@
pay.product.vgift=Virtual Gift
+pay.repost.negative_budget=Budget cannot be negative
pay.repost.notification.paid.subject=Repost payment
pay.repost.notification.paid.body=You have recieved [[qty]] tokens for repost an entry [[url]].
+pay.repost.user_not_person=User is not a person
pay.size.3xlarge=3X-Large
@@ -14048,6 +14050,8 @@
wallet.error_unknown_rcpt|staleness=1
wallet.error_unknown_rcpt=User not found: please check recipient's name.
+wallet.error_unknown_user=User not found.
+
wallet.feature_name=LJ Tokens
wallet.method.name|staleness=1
Modified: trunk/cgi-bin/LJ/Pay/Wallet/Error.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Wallet/Error.pm 2012-08-06 06:35:49 UTC (rev 12419)
+++ trunk/cgi-bin/LJ/Pay/Wallet/Error.pm 2012-08-06 08:20:47 UTC (rev 12420)
@@ -57,6 +57,7 @@
ERROR_CANNOT_SAVE_PAYITEM => 15,
ERROR_CART_ALREADY_PAID => 16,
ERROR_RCPT_IS_SELF => 17,
+ ERROR_UNKNOWN_USER => 18,
# Account errors, 100 <= code < 200
ERROR_ACC_INSUFFICIENT_FUNDS => 100,
Modified: trunk/cgi-bin/LJ/Pay/Wallet.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Wallet.pm 2012-08-06 06:35:49 UTC (rev 12419)
+++ trunk/cgi-bin/LJ/Pay/Wallet.pm 2012-08-06 08:20:47 UTC (rev 12420)
@@ -25,7 +25,7 @@
# ensure that $remote is eligible to use the feature
die "Not eligible"
- unless LJ::Pay::Wallet->is_user_eligibile($remote);
+ unless LJ::Pay::Wallet->is_user_eligible($remote);
# get to know how much tokens $remote has on the balance
print LJ::Pay::Wallet->get_user_balance($remote);
