mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2025-03-12 08:58:21 +03:00
Merge remote-tracking branch 'origin/v3.0'
This commit is contained in:
commit
a6fab9ef54
@ -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;
|
||||
|
@ -98,4 +98,8 @@ export class User {
|
||||
get isLogged(): boolean {
|
||||
return this.user != null;
|
||||
}
|
||||
|
||||
get isRestricted(): boolean {
|
||||
return this.role === 'restricted';
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,9 @@
|
||||
"baseUrl": "./",
|
||||
"types": []
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"strictTemplates": true
|
||||
},
|
||||
"files": [
|
||||
"main.ts",
|
||||
"polyfills.ts"
|
||||
|
@ -8,6 +8,9 @@
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"strictTemplates": true
|
||||
},
|
||||
"files": [
|
||||
"test.ts",
|
||||
"polyfills.ts"
|
||||
|
Loading…
x
Reference in New Issue
Block a user