mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
User cannot change their own role
This commit is contained in:
parent
ce23692922
commit
c39e7224dc
@ -198,17 +198,16 @@ export default {
|
||||
}
|
||||
},
|
||||
changeUserRole(id, event) {
|
||||
const newRole = event.target.value;
|
||||
const newRole = event.target.value
|
||||
this.$apollo
|
||||
.mutate({
|
||||
mutation: updateUserRole(newRole, id),
|
||||
variables: { role: newRole, id}
|
||||
variables: { role: newRole, id },
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error.message);
|
||||
this.$toast.error(error.message)
|
||||
}
|
||||
)
|
||||
console.log(error.message)
|
||||
this.$toast.error(error.message)
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user