We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cfe055 commit 9c23986Copy full SHA for 9c23986
admin-ui/app/utils/AppAuthProvider.js
@@ -92,7 +92,7 @@ export default function AppAuthProvider(props) {
92
setShowContent(false)
93
return null
94
} else {
95
- if (userinfo.jansAdminUIRole || userinfo.length === 0) {
+ if (!userinfo.jansAdminUIRole || userinfo.jansAdminUIRole.length == 0) {
96
97
setRoleNotFound(true)
98
alert('The logged-in user do not have valid role. Logging out of Admin UI')
0 commit comments