diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-11-29 18:55:35 +0000 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2021-11-29 20:49:20 +0000 |
commit | 259dc80fca40e0265efb0150719a93c255a56198 (patch) | |
tree | 79036cd3f709c1d66b9844232c2ac3f5c80706cd /core/src | |
parent | 7b142f74a9ecf2db014fb8679b9567fdea25b499 (diff) | |
download | nextcloud-server-259dc80fca40e0265efb0150719a93c255a56198.tar.gz nextcloud-server-259dc80fca40e0265efb0150719a93c255a56198.zip |
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>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/views/Profile.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/views/Profile.vue b/core/src/views/Profile.vue index aec32a41186..0d855fc38cc 100644 --- a/core/src/views/Profile.vue +++ b/core/src/views/Profile.vue @@ -273,7 +273,9 @@ export default { methods: { handleStatusUpdate(status) { - this.status = status + if (this.isCurrentUser && status.userId === this.userId) { + this.status = status + } }, openStatusModal() { |