mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Replace PUT by PATCH to promote admin permissions
This commit is contained in:
6
resources/js/services/userService.js
vendored
6
resources/js/services/userService.js
vendored
@ -103,12 +103,12 @@ export default {
|
||||
},
|
||||
|
||||
/**
|
||||
* Update user
|
||||
* Promote or demote user from the admin role
|
||||
*
|
||||
* @returns promise
|
||||
*/
|
||||
update(id, payload, config = {}) {
|
||||
return apiClient.patch('/users/' + id, payload, { ...config })
|
||||
promote(id, payload, config = {}) {
|
||||
return apiClient.patch('/users/' + id + '/promote', payload, { ...config })
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user