diff options
author | Baptiste Fotia <fotia.baptiste@hotmail.com> | 2022-09-09 18:34:16 +0300 |
---|---|---|
committer | Baptiste Fotia <fotia.baptiste@hotmail.com> | 2022-09-19 17:18:23 +0300 |
commit | c86c97bcb265efb8617bc95fcc07c7d2da024790 (patch) | |
tree | 6e1dd86f6be9b0c06268f4fd145a8cf20ea637b1 /src | |
parent | b620f330b440007373de8fb71df39d212fe08ad2 (diff) |
feat(TS, Controller, Routes): The admin delegation is based on the Admin Privileges
Now, we can define the groups on the Groupfolders settings side. When we add, update or remove a group, it updates on the Admin Privileges side
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/settings/Api.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings/Api.ts b/src/settings/Api.ts index 8cd3aa82..4745e7c5 100644 --- a/src/settings/Api.ts +++ b/src/settings/Api.ts @@ -55,7 +55,7 @@ export class Api { // Returns all groups that have been granted delegated admin rights on groupfolders listDelegatedAdmins(): Thenable<Group[]> { - return $.getJSON(this.getUrl('delegation/admins')) + return $.getJSON(this.getUrl('/delegation/authorized-groups')) .then((data: OCSResult<Group[]>) => { // The admin group is always there. We don't want the user to remove it const groups = data.ocs.data.filter(g => g.id !== 'admin') @@ -78,7 +78,7 @@ export class Api { let newGroups = groups.map(g => g.id); // The admin group shall always be granted delegation rights newGroups.push('admin') - return $.post(this.getUrl('delegation/admins'), { groups: JSON.stringify(newGroups) }, null, 'json') + return $.post(this.getUrl('delegation/authorized-groups'), { newGroups: JSON.stringify(newGroups) }, null, 'json') .then((data) => data); } |