mirror of
https://github.com/discourse/discourse.git
synced 2025-06-13 01:46:29 +08:00
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.
This commit is contained in:
@ -60,7 +60,7 @@ export default Controller.extend({
|
|||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
changeGroupNotificationLevel(notificationLevel) {
|
changeGroupNotificationLevel(notificationLevel) {
|
||||||
this.group.setNotification(notificationLevel, this.get("user.id"));
|
this.group.setNotification(notificationLevel, this.get("user.model.id"));
|
||||||
},
|
},
|
||||||
archive() {
|
archive() {
|
||||||
this.bulkOperation("archive_messages");
|
this.bulkOperation("archive_messages");
|
||||||
|
Reference in New Issue
Block a user