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 19:05:27 +0000 |
commit | 3aea0f2c19ffaf1004de3dbf5c95d38fcf6021e5 (patch) | |
tree | a819188f4385fd5ca00658942dbcf8e7eec276dc /core/src/views | |
parent | a1497c742cea6c65ddbcc04f6ded3afa6670b0f8 (diff) | |
download | nextcloud-server-3aea0f2c19ffaf1004de3dbf5c95d38fcf6021e5.tar.gz nextcloud-server-3aea0f2c19ffaf1004de3dbf5c95d38fcf6021e5.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/views')
-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() { |