Skip to content

Commit

Permalink
refactor: simplify project assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Nov 8, 2023
1 parent 8519bd1 commit c49bd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/middleware/rbac-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ const rbacMiddleware = (
permissionsArray.includes(UPDATE_PROJECT_SEGMENT)
) {
const { id } = params;
const segment = await segmentStore.get(id);
projectId = segment.project;
const { project } = await segmentStore.get(id);
projectId = project;
}

return accessService.hasPermission(
Expand Down

0 comments on commit c49bd05

Please sign in to comment.