diff --git a/app/assets/javascripts/discourse/routes/discourse_restricted_user_route.js b/app/assets/javascripts/discourse/routes/discourse_restricted_user_route.js index dbd73f4b9..3d522071a 100644 --- a/app/assets/javascripts/discourse/routes/discourse_restricted_user_route.js +++ b/app/assets/javascripts/discourse/routes/discourse_restricted_user_route.js @@ -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); } }