Map: diosplay of layers in the tree with viewableRole
This commit is contained in:
parent
21f6e27c7f
commit
10904248ed
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ export class AuthenticationService {
|
||||||
if (roles.length == 0) return of(true)
|
if (roles.length == 0) return of(true)
|
||||||
// return this.roles.filter(value => -1 !== roles.indexOf(value.name)).length > 0
|
// return this.roles.filter(value => -1 !== roles.indexOf(value.name)).length > 0
|
||||||
return this.configService.conf.pipe(map(
|
return this.configService.conf.pipe(map(
|
||||||
conf => conf.bsData?.user.roles.filter(value => -1 !== roles.indexOf(value.name)).length > 0
|
conf => conf.bsData?.user?.roles?.filter(value => -1 !== roles.indexOf(value.name)).length > 0
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue