exporting ECB
This commit is contained in:
@@ -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: "",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user