mirror of
https://github.com/filegator/filegator.git
synced 2025-08-16 11:14:08 +02:00
Fix: for LDAP auth when user credentials are invalid (#407)
* Fix: for LDAP auth when user credentials are invalid * Fix: for LDAP auth when user credentials are invalid
This commit is contained in:
committed by
GitHub
parent
7f33cc8805
commit
7e0f460d9e
@@ -92,7 +92,7 @@ const funcs = {
|
||||
})
|
||||
},
|
||||
is(role) {
|
||||
return this.$store.state.user.role == role
|
||||
return this.$store.state?.user?.role == role
|
||||
},
|
||||
can(permissions) {
|
||||
return this.$store.getters.hasPermissions(permissions)
|
||||
|
Reference in New Issue
Block a user