Workspace sidebar items not visible for non-Administrator users (Frappe v15)

Summary

In Frappe 15.x.x-develop (9f04636), any Workspace sidebar item of type “Workspace” does not appear for non-Administrator users — even if the user has all roles, all modules, and full permissions. Administrator sees everything correctly.

Sidebar items of type DocType work normally.


Steps to Reproduce

  1. Create a non-Administrator user and give them:
    • All roles
    • All modules
    • Full permissions on Workspace, Dashboard, etc.
  2. Create (or use the HR default) Workspace Sidebar with:
    • Item A → Type: Workspace (e.g. “Home”)
    • Item B → Type: DocType (e.g. Employee)
  3. Log in as Administrator:
    • Both items appear (Home + Employee).
  4. Log in as the non-Admin user:
    • Only the DocType item appears.
    • The Workspace item is missing.
    • The Workspace can still be opened via URL (/app/workspace-name), so permissions are correct.

Expected

If the user can access the Workspace by URL, the sidebar item of type Workspace should appear.


Actual

Sidebar items of type Workspace are hidden for all non-Administrator users, regardless of permissions.
Works only for Administrator.


Workaround

Change sidebar item from:

  • Type: Workspace
    to
  • Type: Link (URL: /app/<workspace>)

This makes it visible for non-Admin users.


Notes

Tested on a clean site with default HR/ERPNext workspaces; issue is consistent.