Skip to content
Snippets Groups Projects
Commit 3d64b21d authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #11645 TIME 0:15 fix priv confidential

parent 14f84750
No related branches found
No related tags found
No related merge requests found
...@@ -116,11 +116,17 @@ export class GroupAdministrationComponent implements OnInit { ...@@ -116,11 +116,17 @@ export class GroupAdministrationComponent implements OnInit {
} }
]; ];
} else if (element === 'confidentialityAndSecurity') { } else if (element === 'confidentialityAndSecurity') {
let priv = '';
if (this.group.privileges.filter((priv: any) => priv === 'manage_personal_data')[0]) {
priv = 'manage_personal_data';
} else if (this.group.privileges.filter((priv: any) => priv === 'view_personal_data')[0]) {
priv = 'view_personal_data';
}
services = [ services = [
{ {
"id": "confidentialityAndSecurity_personal_data", "id": "confidentialityAndSecurity_personal_data",
"label": this.lang.personalDataMsg, "label": this.lang.personalDataMsg,
"current": this.group.privileges.filter((priv: any) => ['view_personal_data', 'manage_personal_data'].indexOf(priv) > -1)[0] !== undefined ? this.group.privileges.filter((priv: any) => ['view_personal_data', 'manage_personal_data'].indexOf(priv) > -1)[0] : '', "current": priv,
"services": this.privilegeService.getPrivileges(['view_personal_data', 'manage_personal_data']) "services": this.privilegeService.getPrivileges(['view_personal_data', 'manage_personal_data'])
} }
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment