Skip to content

Commit 9c23986

Browse files
committed
fix: block user without proper roles #277
1 parent 2cfe055 commit 9c23986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin-ui/app/utils/AppAuthProvider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function AppAuthProvider(props) {
9292
setShowContent(false)
9393
return null
9494
} else {
95-
if (userinfo.jansAdminUIRole || userinfo.length === 0) {
95+
if (!userinfo.jansAdminUIRole || userinfo.jansAdminUIRole.length == 0) {
9696
setShowContent(false)
9797
setRoleNotFound(true)
9898
alert('The logged-in user do not have valid role. Logging out of Admin UI')

0 commit comments

Comments
 (0)