-
-
Notifications
You must be signed in to change notification settings - Fork 79
RE1-T112 fixes #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RE1-T112 fixes #326
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,22 +19,14 @@ public class RequireActivePlanFilter : IAsyncActionFilter | |
| // Actions that are always reachable regardless of plan status | ||
| private static readonly string[] ExemptControllers = new[] | ||
| { | ||
| "account" | ||
| "account", | ||
| "subscription" | ||
|
Comment on lines
+22
to
+23
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Controller-level On Line 23, exempting the entire Suggested fix (narrow exemption to explicit routes)- private static readonly string[] ExemptControllers = new[]
- {
- "account",
- "subscription"
- };
+ private static readonly string[] ExemptControllers = new[]
+ {
+ "account"
+ };
+
+ private static readonly (string Controller, string Action)[] ExemptRoutes = new[]
+ {
+ ("subscription", "selectregistrationplan"),
+ ("subscription", "logstriperesponse"),
+ ("subscription", "validatecoupon")
+ };
@@
- // Skip exempt actions (payment flow, plan selection itself)
+ // Skip explicitly exempt controller/action routes
+ foreach (var route in ExemptRoutes)
+ {
+ if (string.Equals(controller, route.Controller, StringComparison.OrdinalIgnoreCase) &&
+ string.Equals(action, route.Action, StringComparison.OrdinalIgnoreCase))
+ {
+ await next();
+ return;
+ }
+ }
+
+ // Skip exempt actions
var action = routeData.Values["action"]?.ToString() ?? string.Empty;🤖 Prompt for AI Agents |
||
| }; | ||
|
|
||
| private static readonly string[] ExemptActions = new[] | ||
| { | ||
| "selectregistrationplan", | ||
| "getstripesession", | ||
| "getstripeupdate", | ||
| "stripeprocessing", | ||
| "paymentcomplete", | ||
| "paymentpending", | ||
| "paymentfailed", | ||
| "logstriperesponse", | ||
| "stripebillinginfoupdatesuccess", | ||
| "getpaddlecheckout", | ||
| "paddleprocessing" | ||
| "topiconsarea", | ||
| "getsearchresults" | ||
| }; | ||
|
|
||
| public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't persist one shared
Messagefor all recipients.The previous
broadcastSingle: truepath created oneMessagerow per recipient. This version saves a single row with multipleMessageRecipients, butReceivingUserId,ReadOn, andIsDeletedstill live onMessageitself. That changes inbox semantics for weather alerts from recipient-scoped state to shared state.🤖 Prompt for AI Agents