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:
Joffrey JAFFEUX 2020-08-04 21:23:55 +02:00 committed by GitHub
parent fb91320cba
commit 4593bb60c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");