Commit 4281410
committed
feat(limitation): add saved filter limit check to ContentLimitationService
Extends the `ContentLimitationService` to enforce limits on saving new filters.
This change adds a `saveFilter` case to the `ContentAction` enum and implements the corresponding logic within the `checkAction` method. It reads the user's role and the number of currently saved filters, comparing it against the role-specific limit defined in the remote configuration (`guestSavedFiltersLimit`, `authenticatedSavedFiltersLimit`, `premiumSavedFiltersLimit`).
This centralizes the business rule for filter limits, ensuring it can be applied consistently across the app.1 parent 854b967 commit 4281410
File tree
1 file changed
+21
-0
lines changed1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
85 | 103 | | |
86 | 104 | | |
87 | 105 | | |
| |||
107 | 125 | | |
108 | 126 | | |
109 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
110 | 131 | | |
111 | 132 | | |
112 | 133 | | |
| |||
0 commit comments