Commit 395e9b6d authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #17436 TIME 0:13 format data to send

parent 70e23e55
......@@ -365,10 +365,13 @@ export class GroupComponent implements OnInit {
updatePrivilege(privilege: any) {
const objTosend: any = {
checked: privilege.checked
checked: privilege.checked,
parameters: {
authorized: this.groups
}
};
if (privilege.id === 'manage_users') {
objTosend['authorized'] = this.groups;
if (privilege.id !== 'manage_users') {
delete objTosend.parameters.authorized;
}
this.http.put('../rest/groups/' + this.group.id + '/privilege/' + privilege.id, objTosend)
.pipe(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment