Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117661143
D5799.1774871400.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D5799.1774871400.diff
View Options
diff --git a/src/app/Policy/RateLimit.php b/src/app/Policy/RateLimit.php
--- a/src/app/Policy/RateLimit.php
+++ b/src/app/Policy/RateLimit.php
@@ -43,7 +43,7 @@
$sender = $local . '@' . $domain;
if (in_array($sender, \config('app.ratelimit_whitelist', []), true)) {
- return new Response(); // DUNNO
+ return new Response(Response::ACTION_DUNNO);
}
// Find the Kolab user
@@ -56,7 +56,7 @@
// TODO: How about sender is a distlist address?
// external sender through where this policy is applied
- return new Response(); // DUNNO
+ return new Response(Response::ACTION_DUNNO);
}
$user = $alias->user()->withTrashed()->first();
@@ -85,7 +85,7 @@
if (!$domain) {
// external sender through where this policy is applied
- return new Response(); // DUNNO
+ return new Response(Response::ACTION_DUNNO);
}
if ($domain->trashed() || $domain->isSuspended()) {
@@ -96,7 +96,7 @@
// see if the user or domain is whitelisted
// use ./artisan policy:ratelimit:whitelist:create <email|namespace>
if (RateLimit\Whitelist::isListed($user) || RateLimit\Whitelist::isListed($domain)) {
- return new Response(); // DUNNO
+ return new Response(Response::ACTION_DUNNO);
}
// user nor domain whitelisted, continue scrutinizing the request
@@ -135,7 +135,7 @@
// exempt owners that have 100% discount.
if ($wallet->discount && $wallet->discount->discount == 100) {
- return new Response(); // DUNNO
+ return new Response(Response::ACTION_DUNNO);
}
// exempt owners that currently maintain a positive balance and made any payments.
@@ -223,6 +223,6 @@
}
}
- return new Response(); // DUNNO
+ return new Response(Response::ACTION_DUNNO);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 11:50 AM (3 d, 22 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18806745
Default Alt Text
D5799.1774871400.diff (1 KB)
Attached To
Mode
D5799: Just use the enum to document what's happening
Attached
Detach File
Event Timeline