mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Prevent your own status from replacing another user's status
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
a1497c742c
commit
3aea0f2c19
3 changed files with 11 additions and 9 deletions
14
core/js/dist/profile.js
vendored
14
core/js/dist/profile.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/profile.js.map
vendored
2
core/js/dist/profile.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -273,7 +273,9 @@ export default {
|
|||
|
||||
methods: {
|
||||
handleStatusUpdate(status) {
|
||||
this.status = status
|
||||
if (this.isCurrentUser && status.userId === this.userId) {
|
||||
this.status = status
|
||||
}
|
||||
},
|
||||
|
||||
openStatusModal() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue