src/config/acl.rs: add /system/disks to valid acl paths

This commit is contained in:
Dietmar Maurer 2020-06-06 15:48:15 +02:00
parent 8e40aa63c1
commit fa2bdc1309
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ pub fn check_acl_path(path: &str) -> Result<(), Error> {
"system" => { "system" => {
if components_len == 1 { return Ok(()); } if components_len == 1 { return Ok(()); }
match components[1] { match components[1] {
"log" | "status" | "tasks" | "time" => { "disks" | "log" | "status" | "tasks" | "time" => {
if components_len == 2 { return Ok(()); } if components_len == 2 { return Ok(()); }
} }
"services" => { // /system/services/{service} "services" => { // /system/services/{service}