Skip to content
Snippets Groups Projects
Commit 395e9b6d authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #17436 TIME 0:13 format data to send

parent 70e23e55
No related branches found
No related tags found
No related merge requests found
...@@ -365,10 +365,13 @@ export class GroupComponent implements OnInit { ...@@ -365,10 +365,13 @@ export class GroupComponent implements OnInit {
updatePrivilege(privilege: any) { updatePrivilege(privilege: any) {
const objTosend: any = { const objTosend: any = {
checked: privilege.checked checked: privilege.checked,
parameters: {
authorized: this.groups
}
}; };
if (privilege.id === 'manage_users') { if (privilege.id !== 'manage_users') {
objTosend['authorized'] = this.groups; delete objTosend.parameters.authorized;
} }
this.http.put('../rest/groups/' + this.group.id + '/privilege/' + privilege.id, objTosend) this.http.put('../rest/groups/' + this.group.id + '/privilege/' + privilege.id, objTosend)
.pipe( .pipe(
......
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