- Replace company logo as favicon (browser tab icon) using logo-transparent.png
- Fix admin tab title from corrupted 'Admin â€" Explorer' to 'Admin - Explorer'
- Fix Export CSV button: replace garbled char with proper down arrow (↓)
- Replace garbled trash emoji in corrections delete button with 'Delete' text
Cache-bust favicon version to v=3 to force browser refresh.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix: Replace Jinja2 'in' operator with explicit or checks for template compatibility
Changed 'user.role in [list]' to 'user.role == 'admin' or user.role == 'manager''
to avoid potential Jinja2 compatibility issues.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rework role hierarchy: admin/manager/staff with granular permissions
Role structure:
- Admin (3): Full access to all pages and operations
- Manager (2): Access all pages + admin panel, but can only add users (not delete)
- Staff (1): Access consultants/analytics/browse (read-only), can save corrections
Changes:
- Rename employee→manager, viewer→staff in role definitions
- Update PAGE_ACCESS to reflect new permissions
- Add admin-only authorization checks on all delete endpoints
- /admin/corrections/delete
- /browse/delete, /browse/edit
- /analytics/delete
- Update admin.html with new role select options (staff/manager/admin)
- Hide delete buttons from non-admin users in corrections table
- Allow managers to access admin navigation link in base.html and home.html
- Add .role-manager CSS styling (blue/purple)
- Update database default role from employee to staff
- Remove obsolete .role-employee CSS selector
Backward compatibility: Existing 'employee' and 'viewer' users need migration:
UPDATE users SET role = 'manager' WHERE role = 'employee';
…