exporting ECB

This commit is contained in:
Priec
2026-08-13 09:11:41 +02:00
parent f8e483efa8
commit fe8ea680e3
24 changed files with 895 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ pub(crate) struct Nav {
pub can_permissions: bool,
pub can_import: bool,
pub can_export: bool,
pub can_ecb: bool,
pub active: &'static str,
}
@@ -34,6 +35,7 @@ impl Nav {
can_permissions: false,
can_import: false,
can_export: false,
can_ecb: false,
active,
}
}
@@ -54,6 +56,7 @@ impl Nav {
self.can_export = authorization.permissions.iter().any(|permission| {
permission.action == "read" && permission.object.starts_with("data:")
});
self.can_ecb = crate::authz::can_read_ecb(authorization);
self
}
}
@@ -67,6 +70,7 @@ impl Default for Nav {
can_permissions: false,
can_import: false,
can_export: false,
can_ecb: false,
active: "",
}
}