Browse Source

UI: Fixed permission on page security

pull/6235/head
Vladyslav_Prykhodko 4 years ago
parent
commit
0bb9d531cc
  1. 2
      ui-ngx/src/app/core/auth/auth.service.ts

2
ui-ngx/src/app/core/auth/auth.service.ts

@ -242,7 +242,7 @@ export class AuthService {
if (authState && authState.authUser) {
if (authState.authUser.authority === Authority.TENANT_ADMIN || authState.authUser.authority === Authority.CUSTOMER_USER) {
if ((this.userHasDefaultDashboard(authState) && authState.forceFullscreen) || authState.authUser.isPublic) {
if (path === 'profile') {
if (path === 'profile' || path === 'security') {
if (this.userHasProfile(authState.authUser)) {
return false;
} else {

Loading…
Cancel
Save