bugfixing
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export interface Config {
|
||||
ccliLicenseId: string
|
||||
ccliLicenseId: string;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export interface GlobalSettings {
|
||||
currentShow: string
|
||||
currentShow: string;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,5 +4,5 @@ export interface User {
|
||||
id: string;
|
||||
name: string;
|
||||
role: string;
|
||||
chordMode: ChordMode
|
||||
chordMode: ChordMode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user