mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 15:35:15 +08:00
FIX: Non-Admins couldn't send private messages through the new user expansion
This commit is contained in:
parent
0060050c08
commit
bbf0312e72
|
@ -19,7 +19,7 @@ Discourse.TopicRoute = Discourse.Route.extend({
|
||||||
|
|
||||||
composePrivateMessage: function(user) {
|
composePrivateMessage: function(user) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.transitionTo('userPrivateMessages', user).then(function () {
|
this.transitionTo('userActivity', user).then(function () {
|
||||||
self.controllerFor('userActivity').send('composePrivateMessage');
|
self.controllerFor('userActivity').send('composePrivateMessage');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user