Неоморфическая тема для Jey ERP
Go to file
Ali 96099513a1 access control: hide Quality and Subcontracting modules
Adds jey_theme.access_control with a single source of truth (BLOCKED_MODULES,
BLOCKED_DOCTYPES_EXTRA) and three Frappe hooks:

- before_request: HTTP-level block on /api/resource/<Doctype>, /app/<slug>
  and any whitelisted method passing `doctype` in form_dict. Runs before the
  Administrator bypass in frappe.permissions, so it blocks every user.
- extend_bootinfo: strips blocked modules/doctypes/workspaces from bootinfo
  (workspaces.pages, module_wise_workspaces, app_data, desktop_icons,
  user.can_read/...) so the client router never registers routes for them
  and the sidebar/switcher hide them.
- has_permission wildcard: per-doc safety net for non-Administrator users.

shared.css gets desktop-icon[data-id] fallbacks for Quality/Subcontracting.

Reversal: clear BLOCKED_MODULES in access_control.py and run
`bench --site <site> clear-cache && bench restart`. No DB writes are made.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 11:54:48 +00:00
jey_theme access control: hide Quality and Subcontracting modules 2026-04-13 11:54:48 +00:00
.gitignore feat: Initialize App 2024-07-18 15:03:34 +00:00
CLAUDE.md full chrome metallic theme for entire app 2026-04-09 17:18:59 +00:00
README.md feat: Initialize App 2024-07-18 15:03:34 +00:00
license.txt feat: Initialize App 2024-07-18 15:03:34 +00:00
pyproject.toml feat: Initialize App 2024-07-18 15:03:34 +00:00

README.md

Jey Theme

Theme for Jey ERP

License

unlicense