1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-10-26 08:55:23 +03:00

Merge remote-tracking branch 'origin/v3.0'

This commit is contained in:
Adolfo Gómez García 2021-03-12 13:18:53 +01:00
commit a6fab9ef54
4 changed files with 15 additions and 0 deletions

View File

@ -46,6 +46,11 @@ export class ServicesComponent implements OnInit {
}
private loadServices() {
// If restricted user, it's not allowed to see ALLL services
if (this.api.user.isRestricted) {
this.api.logout();
}
// Obtain services list
this.api.getServicesInformation().subscribe((result: JSONServicesInformation) => {
this.servicesInformation = result;

View File

@ -98,4 +98,8 @@ export class User {
get isLogged(): boolean {
return this.user != null;
}
get isRestricted(): boolean {
return this.role === 'restricted';
}
}

View File

@ -5,6 +5,9 @@
"baseUrl": "./",
"types": []
},
"angularCompilerOptions": {
"strictTemplates": true
},
"files": [
"main.ts",
"polyfills.ts"

View File

@ -8,6 +8,9 @@
"node"
]
},
"angularCompilerOptions": {
"strictTemplates": true
},
"files": [
"test.ts",
"polyfills.ts"