mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Redirect when can_edit === false or undefined
This commit is contained in:
parent
7a73afa117
commit
3bdfdd7c04
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue