Skip to content

Commit 41c51fc

Browse files
committed
chore: Add "bans.bans_fetch" to read-only POST endpoints and rules
1 parent 7beae68 commit 41c51fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ui/app/models/biscuit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,22 @@
3333
# Some UI endpoints use POST for datatable/query payloads but are read-only operations.
3434
READ_ONLY_POST_ENDPOINTS = frozenset(
3535
{
36+
"bans.bans_fetch",
3637
"reports.reports_fetch",
3738
"reports.reports_filters",
3839
"reports.report_data_fetch",
3940
}
4041
)
4142
READ_ONLY_POST_RULES = frozenset(
4243
{
44+
"/bans/fetch",
4345
"/reports/fetch",
4446
"/reports/filters",
4547
"/reports/data",
4648
}
4749
)
4850
READ_ONLY_POST_PATH_SUFFIXES = (
51+
"/bans/fetch",
4952
"/reports/fetch",
5053
"/reports/filters",
5154
"/reports/data",

0 commit comments

Comments
 (0)