Skip to content

Commit c1c0e3c

Browse files
committed
ci(docker): build typo
1 parent d558b4f commit c1c0e3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY . /usr/src/trudesk
1212

1313
RUN apk add --no-cache --update bash make gcc g++ python3
1414
RUN yarn plugin import workspace-tools
15-
RUN yarn workspace focus --all --production
15+
RUN yarn workspaces focus --all --production
1616
RUN cp -R node_modules prod_node_modules
1717
RUN yarn install
1818
RUN yarn build

src/middleware/middleware.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ middleware.redirectToDashboardIfLoggedIn = function (req, res, next) {
4444
return middleware.ensurel2Auth(req, res, next)
4545
}
4646

47-
if (req.user.role === 'user') {
47+
if (!req.user.role.isAdmin || !req.user.role.isAgent) {
4848
return res.redirect('/tickets')
4949
}
5050

0 commit comments

Comments
 (0)