Skip to content

Commit ad416ac

Browse files
authored
fix error spam (calcom#25591)
1 parent 2a7439b commit ad416ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/trpc/server/routers/viewer/pbac/_router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const permissionsRouter = router({
193193
}
194194

195195
if (!teamHasPBACFeature) {
196-
throw new Error("PBAC is not enabled for this team");
196+
return [];
197197
}
198198

199199
// Check if user has permission to view roles

0 commit comments

Comments
 (0)