Merge pull request #989 from chrishunt/redirect-when-cant-edit

Fix RestrictedUserRoute
This commit is contained in:
Sam 2013-06-08 07:16:22 -07:00
commit 26f378e022
1 changed files with 1 additions and 1 deletions

View File

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