Skip to content

Commit d321c85

Browse files
Admin's view of crAPI fixed (#336)
* Admin's view of crAPI fixed * lint fix * updated changes after merging develop --------- Co-authored-by: Roshan Piyush <piyush.roshan@gmail.com>
1 parent ce152a9 commit d321c85

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 === 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)