fix(geoip): ограничить изменение баз правами записи трафика

This commit is contained in:
Denozordec committed 2026-10-03 12:05:48 +07:00
1 parent 65aeedd3b0
commit f0d9f488e6
6 files changed
+46 -3

No files matched your search

+2
View File
@@ -42,6 +42,8 @@ type Rule = {
}
const RULES: Rule[] = [
{ methods: ["GET"], match: path => path === "/api/geoip", permission: "mm:traffic:read" },
{ methods: ["PUT", "POST"], match: path => path === "/api/geoip" || path === "/api/geoip/update", permission: "mm:traffic:write" },
{
methods: ["GET"],
match: p => /^\/api\/servers\/\d+\/ospf(?:\/|$)/.test(p),