Skip to content

Commit

Permalink
Added additional check for external token
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaib-aot committed Jun 14, 2024
1 parent 5623b10 commit 765eff1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/middleware/filterBundleSubmissionData.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ module.exports = function (router) {
!res.resource ||
!res.resource.item ||
!req.isBundle ||
(req.isBundle && req.isAdmin)
(req.isBundle && req.isAdmin && !req.token?.external)
/* Added an external check because in non-multi-tenant cases,
the designer token has admin permissions, making the token external.*/
) {
return next();
}
Expand Down

0 comments on commit 765eff1

Please sign in to comment.