Fix removing groups that have a slash in the name (#18228)
Fix removing groups that have a slash in the name
This commit is contained in:
commit
c3d223fa58
3 changed files with 1 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -320,7 +320,7 @@ const actions = {
|
||||||
*/
|
*/
|
||||||
removeGroup(context, gid) {
|
removeGroup(context, gid) {
|
||||||
return api.requireAdmin().then((response) => {
|
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))
|
.then((response) => context.commit('removeGroup', gid))
|
||||||
.catch((error) => { throw error })
|
.catch((error) => { throw error })
|
||||||
}).catch((error) => context.commit('API_FAILURE', { gid, error }))
|
}).catch((error) => context.commit('API_FAILURE', { gid, error }))
|
||||||
|
|
Loading…
Reference in a new issue