mirror of https://github.com/OCA/web.git
[FIX] web_responsive: Can't access web using superuser
Before this change when trying to access web using superuser the web interface is not charged. By doing this change is all working normally. Steps to reproduce the problem: 1. Log in 2. Go to web/becomepull/2911/head
parent
90aed8b1a4
commit
7a77816764
|
@ -31,7 +31,7 @@ patch(WebClient.prototype, {
|
||||||
["is_redirect_home"]
|
["is_redirect_home"]
|
||||||
);
|
);
|
||||||
this.env.services.user.updateContext({
|
this.env.services.user.updateContext({
|
||||||
is_redirect_to_home: is_redirect_home[0].is_redirect_home,
|
is_redirect_to_home: is_redirect_home[0]?.is_redirect_home,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.redirect = false;
|
this.redirect = false;
|
||||||
|
|
Loading…
Reference in New Issue