Address company authz review feedback

This commit is contained in:
Dotta committed 2026-06-22 15:24:58 +00:00
1 parent 4d41fb4d8a
commit 1d86a07abf
1 file changed
-1
-1
View File
@@ -71,7 +71,6 @@ export function companyRoutes(db: Db, storage?: StorageService) {
async function assertSameCompanyCeoAgentOrBoard(req: Request, companyId: string, capability: string) {
assertCompanyAccess(req, companyId);
if (req.actor.type === "board") {
assertBoard(req);
return;
}
if (!req.actor.agentId) throw forbidden("Agent authentication required");