From ed10b15a108f8dea5fd8c55a52f07f4f5b6e4396 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Thu, 28 Apr 2022 20:35:06 +0200 Subject: [PATCH] Only set search cap for `manage` for now --- bffhd/capnp/session.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bffhd/capnp/session.rs b/bffhd/capnp/session.rs index a7c4541..b9b6d2c 100644 --- a/bffhd/capnp/session.rs +++ b/bffhd/capnp/session.rs @@ -29,6 +29,7 @@ impl APISession { let u = Users::new(session.clone()); if session.has_perm(Permission::new("bffh.users.manage")) { b.set_manage(capnp_rpc::new_client(u.clone())); + b.set_search(capnp_rpc::new_client(u.clone())); } b.set_info(capnp_rpc::new_client(u)); }