Неоморфическая тема для Jey ERP
Go to file
Ali 712d54b6e7 feat: enforce config doctype-block via permission hooks (SM-proof)
Move config-driven doctype blocking off before_request onto the permission
system so a System Manager cannot undo it from the UI:

- permission_query_conditions ("*") returns 1=0 for prod-blocked doctypes
  -> list views come back empty for everyone but Administrator.
- has_permission denies every per-doc op (read/create/write/delete).
- extend_bootinfo strips blocked doctypes from user.can_*.

Doctypes are deliberately NOT blocked at before_request: a blunt URL/API
block breaks search_link/dynamic links, while permission hooks are bypassed
by ignore_permissions so internal/framework reads keep working.

Split desk_layout gating: the visual overlay stays gated on is_enforcing();
access-block accessors (prod_blocked_*) gate on 'not is_design_mode()' so a
block only bites on production (the design machine keeps full access).
Reports/pages/workspaces blocking unchanged (before_request + has_permission).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 16:22:03 +00:00
jey_theme feat: enforce config doctype-block via permission hooks (SM-proof) 2026-06-22 16:22:03 +00:00
.gitignore feat: Initialize App 2024-07-18 15:03:34 +00:00
CLAUDE.md feat: enforce config doctype-block via permission hooks (SM-proof) 2026-06-22 16:22:03 +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