Merge pull request #28010 from frappe/revert-27881-login_ws_fix

Revert "fix: reroute to /app when loggedin user does not have access to defau…"
This commit is contained in:
Sumit Bhanushali 2024-10-07 17:29:58 +05:30 committed by GitHub
commit 8983b13a3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,15 +137,6 @@ frappe.router = {
}
if (this.re_route(sub_path)) return;
if (!frappe.workspaces[sub_path]) {
let is_workspace = await frappe.db.get_value("Workspace", sub_path, "name");
is_workspace = is_workspace.message.name;
if (is_workspace) {
frappe.set_route(["app"]);
}
}
this.current_sub_path = sub_path;
this.current_route = await this.parse();
this.set_history(sub_path);