move Permission into hive-types, drop swarm-controller's hive-sh4re dep
This commit is contained in:
parent
04786da58f
commit
e4a9005468
1 changed files with 221 additions and 175 deletions
|
|
@ -351,8 +351,7 @@ pub fn make_session(bus: &Bus) -> Result<AgentSession> {
|
|||
/// against the agent's permissions at the moment it asks.
|
||||
fn acp_permission_policy() -> PermissionPolicy {
|
||||
std::sync::Arc::new(|ask: &PermissionAsk<'_>| {
|
||||
let web = crate::swarm_permissions::current()
|
||||
.contains(&hive_sh4re::permissions::Permission::WebTools);
|
||||
let web = crate::swarm_permissions::current().contains(&hive_types::Permission::WebTools);
|
||||
acp_permits(ask, web)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue