mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:38:48 +08: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