Skip to content

Commit

Permalink
do not restrict visitors on uikit block
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc committed Oct 24, 2024
1 parent a5696b2 commit bff9207
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/meteor/ee/server/apps/communication/uikit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ router.use(authenticationMiddleware({ rejectUnauthorized: false }));

router.use(async (req: Request, res, next) => {
const { 'x-visitor-token': visitorToken } = req.headers;
const { id: appId } = req.params;

if (visitorToken) {
req.body.visitor = await Apps.getConverters()?.get('visitors').convertByTokenAndSource(visitorToken, appId);
req.body.visitor = await Apps.getConverters()?.get('visitors').convertByToken(visitorToken);
}

if (!req.user && !req.body.visitor) {
Expand Down

0 comments on commit bff9207

Please sign in to comment.