[Fleet] Fix Fleet server authz (#120548) (#120587)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
This commit is contained in:
Kibana Machine 2021-12-07 07:23:51 -05:00 committed by GitHub
parent 85faf76c25
commit ec8181821b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,8 +151,8 @@ export async function getAuthzFromRequest(req: KibanaRequest): Promise<FleetAuth
// Once we implement Kibana RBAC, use `checkPrivileges` for all privileges instead of only integrations.read
return calculateAuthz({
fleet: { all: true, setup: true },
integrations: { all: true, read: intRead.authorized },
fleet: { all: false, setup: false },
integrations: { all: false, read: intRead.authorized },
});
}
}