mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Redirect when can_edit === false or undefined
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user