Skip to content

Commit 6094cd0

Browse files
committed
[NAE-1717] Banned roles not hiding menu entries
- corrected according to PR.
1 parent 0c58d0e commit 6094cd0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

projects/netgrif-components-core/src/lib/authorization/role/role-guard.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ export class RoleGuardService implements CanActivate {
4444
const allowedRoles = this.parseRoleConstraints(view.access.role, url);
4545

4646
if (bannedRoles.length == 0 && allowedRoles.length == 0) {
47-
this._log.warn("Both 'roles' and 'bannedRole' are defined on view [" + view.routing + "], but" +
48-
" they are empty lists. No one will be able to navigate to that view.")
4947
return false;
5048
}
5149

0 commit comments

Comments
 (0)