Merge pull request #989 from chrishunt/redirect-when-cant-edit
Fix RestrictedUserRoute
This commit is contained in:
commit
26f378e022
|
@ -9,7 +9,7 @@
|
|||
Discourse.RestrictedUserRoute = Discourse.Route.extend({
|
||||
|
||||
redirect: function(user) {
|
||||
if (user.get('can_edit') === false) {
|
||||
if (!user.get('can_edit')) {
|
||||
this.transitionTo('user.activity', user);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue