Redirect when can_edit === false or undefined

This commit is contained in:
Chris Hunt 2013-06-07 22:09:51 -07:00
parent 7a73afa117
commit 3bdfdd7c04

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