mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 01:05:00 +00:00
Redirect when can_edit === false or undefined
This commit is contained in:
parent
7a73afa117
commit
3bdfdd7c04
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user