v0.3
This commit is contained in:
1 parent
28e39f7ce4
commit
b57beb83c7
34 files changed
+1037
-314
No files matched your search
@@ -26,7 +26,11 @@ fn general_api_token_allowed(method: &Method, path: &str, permission: &str) -> b
|
||||
&& ((method == Method::PUT
|
||||
&& (path == "/api/config"
|
||||
|| path.strip_prefix("/api/config/").is_some_and(|part| {
|
||||
!part.is_empty() && part != "history" && part != "reload" && !part.contains('/')
|
||||
!part.is_empty()
|
||||
&& part != "history"
|
||||
&& part != "reload"
|
||||
&& part != "storage"
|
||||
&& !part.contains('/')
|
||||
})))
|
||||
|| (method == Method::POST
|
||||
&& matches!(
|
||||
|
||||
Reference in new issue
Block a user