Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117945836
D4591.1775483756.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
748 B
Referenced Files
None
Subscribers
None
D4591.1775483756.diff
View Options
diff --git a/src/app/Http/Controllers/API/V4/PolicyController.php b/src/app/Http/Controllers/API/V4/PolicyController.php
--- a/src/app/Http/Controllers/API/V4/PolicyController.php
+++ b/src/app/Http/Controllers/API/V4/PolicyController.php
@@ -142,6 +142,11 @@
$request->save();
}
+ // exempt owners that have 100% discount.
+ if ($wallet->discount && $wallet->discount->discount == 100) {
+ return response()->json(['response' => 'DUNNO'], 200);
+ }
+
// exempt owners that have made at least two payments and currently maintain a positive balance.
if ($wallet->balance > 0) {
$payments = $wallet->payments()->where('amount', '>', 0)->where('status', 'paid');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 1:55 PM (1 d, 55 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18820963
Default Alt Text
D4591.1775483756.diff (748 B)
Attached To
Mode
D4591: Excempt users with 100% discount from rate-limiting
Attached
Detach File
Event Timeline