Skip to content

Commit

Permalink
Patch serviceTokenData workspace string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Mar 9, 2023
1 parent 06e26da commit 5860136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/middleware/requireWorkspaceAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const requireWorkspaceAuth = ({

if (
req.serviceTokenData
&& req.serviceTokenData.workspace !== workspaceId
&& req.serviceTokenData.workspace.toString() !== workspaceId
&& req.serviceTokenData.environment !== req.body.environment
) {
next(UnauthorizedRequestError({message: 'Unable to authenticate workspace'}))
Expand Down

0 comments on commit 5860136

Please sign in to comment.