[stable 17] Fix removing groups that have a slash in the name (#18257)
[stable 17] Fix removing groups that have a slash in the name
This commit is contained in:
commit
2668ca73f3
3 changed files with 27 additions and 27 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -320,7 +320,7 @@ const actions = {
|
|||
*/
|
||||
removeGroup(context, gid) {
|
||||
return api.requireAdmin().then((response) => {
|
||||
return api.delete(OC.linkToOCS(`cloud/groups/${gid}`, 2))
|
||||
return api.delete(OC.linkToOCS(`cloud/groups/${encodeURIComponent(gid)}`, 2))
|
||||
.then((response) => context.commit('removeGroup', gid))
|
||||
.catch((error) => {throw error;});
|
||||
}).catch((error) => context.commit('API_FAILURE', { gid, error }));
|
||||
|
|
Loading…
Reference in a new issue