bugfixing

This commit is contained in:
2020-06-14 15:46:24 +02:00
parent 1e1e127f13
commit 19b28453d3
36 changed files with 175 additions and 97 deletions

View File

@@ -41,9 +41,13 @@ export class RoleDirective implements OnInit {
private checkPermission() {
if (this.currentUser && this.currentUser.role) {
if (this.currentUser.role === 'admin') return true;
if (this.currentUser.role === 'admin') {
return true;
}
for (const role of this.appRole) {
if (this.currentUser.role.indexOf(role) !== -1) return true;
if (this.currentUser.role.indexOf(role) !== -1) {
return true;
}
}
}