mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
Address company authz review feedback
This commit is contained in:
1 parent
4d41fb4d8a
commit
1d86a07abf
1 file changed
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user