diff --git a/src/app/_services/authentication.service.ts b/src/app/_services/authentication.service.ts
index c11ee0e..7f2b392 100644
--- a/src/app/_services/authentication.service.ts
+++ b/src/app/_services/authentication.service.ts
@@ -130,7 +130,7 @@ export class AuthenticationService {
         if (roles.length == 0) return of(true)
         // return this.roles.filter(value => -1 !== roles.indexOf(value.name)).length > 0
         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
         ))
     }
 }