mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-21 22:47:55 +01:00
Only set search cap for manage
for now
This commit is contained in:
parent
869f3d5e5f
commit
ed10b15a10
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user