Skip to content

Commit 3671b34

Browse files
committed
enforce admin perms for activity api
1 parent 914d24d commit 3671b34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/api/workspaces/[id]/background-work

apps/sim/app/api/workspaces/[id]/background-work/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const GET = withRouteHandler(
2222
if (!access.exists) {
2323
return NextResponse.json({ error: 'Workspace not found' }, { status: 404 })
2424
}
25-
if (!access.hasAccess) {
25+
if (!access.canAdmin) {
2626
return NextResponse.json({ error: 'Forbidden' }, { status: 403 })
2727
}
2828

0 commit comments

Comments
 (0)