Ex09 — Auth & Permissions
Role: GUEST
· Perms: view=no; secret=no; delete=no
Production: signin calls setSession(ADMIN|MEMBER, uid)
and sets lstpermis from DB. Other Gates: getAuthenticate then
$this->page->getAuthenticatePerm("view") — that method loads the permission map
(do not set permissions manually).
Demo role: GUEST | MEMBER | ADMIN · Run secret event
1. Fusion: role auth (render)
Visible for GUEST, MEMBER, ADMIN.
2. Fusion: permission render
3. Menus (Front Place + SphpAPI)
Project-wide menus: masters/default/menu.place.php (PHP Front Place) or
*.place.front. Pass roles/permissions on addMenu /
addMenuLink — no match → menu not rendered. Gate may also
banMenu / banMenuLink. Look for Ex09Demo /
Ex09 Secret UI (needs ex09permis-secret).