From 4593bb60c580f7af08f6a77effab3a2348e034d4 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 4 Aug 2020 21:23:55 +0200 Subject: [PATCH] FIX: allows to change a user group notification level (#10369) The current code has an ambiguous name of "user" which is actually not a user model, the real user model is accessible on the model key of user. --- .../discourse/app/controllers/user-private-messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/controllers/user-private-messages.js b/app/assets/javascripts/discourse/app/controllers/user-private-messages.js index d079104584f..83cb0638832 100644 --- a/app/assets/javascripts/discourse/app/controllers/user-private-messages.js +++ b/app/assets/javascripts/discourse/app/controllers/user-private-messages.js @@ -60,7 +60,7 @@ export default Controller.extend({ actions: { changeGroupNotificationLevel(notificationLevel) { - this.group.setNotification(notificationLevel, this.get("user.id")); + this.group.setNotification(notificationLevel, this.get("user.model.id")); }, archive() { this.bulkOperation("archive_messages");