Skip to content

Commit a9cb00d

Browse files
committed
updated changes after merging develop
1 parent e359e1b commit a9cb00d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/src/components/layout/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ const AfterLogin: React.FC<AfterLoginProps> = ({
110110

111111
if (
112112
!componentRole ||
113-
(componentRole && componentRole === userRole) ||
114-
(userRole && userRole === roleTypes.ROLE_ADMIN)
113+
componentRole === userRole ||
114+
(componentRole === roleTypes.ROLE_USER && userRole === roleTypes.ROLE_ADMIN)
115115
) {
116116
return <Component />;
117117
}

0 commit comments

Comments
 (0)