Release Notes β OBJSIS v2.7.1
Release Date: 2026-06-28
π New Features
Role Permission Editor (admin/roles.php)
- Full CRUD page for managing roles
- Per-role page-access control β admins choose exactly which menu sections a role can open
- Granular permission tags + page-group checkboxes (Dashboard, Kitchen, Orders, Inventory, etc.)
- 4 new API endpoints in
api/admin_actions.php:add_roleedit_roledelete_roleupdate_role_permissions
- Admin role is locked from edits/delete; deleting a role warns and disassociates users first
π Bug Fixes
Kitchen KDS β "Run Kitchen" Button Unresponsive
- Button was completely dead due to missing CSRF token in the
updateStatus()AJAX payload - PHP handler was reading undefined
$new_status/$order_idvariables, so SQL always failed - Both issues fixed in
admin/kitchen.phpβ "Run Kitchen" and "Done / Ready" now work reliably
Role Permissions Modal β Selection Did Nothing
openPermModal()andsavePermissions()parsed permission IDs from fragileonclickattribute strings which no longer existed after the button-CSS rewrite- Rewrote JS to use reliable
data-permidattributes embedded directly by PHP savePermissions()now correctly updates the card preview without full page reload
Duplicate Role Name Crash
add_rolehandler would let the DB throw a PDOIntegrity constraint violation(duplicatenamekey), which dumped raw HTML into the JSON response and broke everyfetch().json()on the admin panel (includingkitchen.phppolling)- Now returns a proper
{ success: false, message: ... }JSON error before attempting the INSERT
π§ Changes
- Bumped version constant to
2.7.1(config/version.php) - Added
employees.phpto project architecture docs (it is referenced in sidebar but missing from tree)
π¦ Files Changed
| File | Change |
|---|---|
admin/roles.php |
New β Role management page |
api/admin_actions.php |
New β add_role, edit_role, delete_role, update_role_permissions |
admin/kitchen.php |
CSRF token added + PHP variable assignment fixed |
config/version.php |
2.6.1 β 2.7.1 |
README.md |
Version badge, features table, roadmap, release notes updated |
β¬οΈ Upgrading
- Pull/replace the changed files above
- No database migration required β
roles,permissions, androle_permissionstables already exist from the base install - Users with the
adminrole in$_SESSION['user_role']automatically gain access to the new page (reload session if needed)
β οΈ Notes
- This is still a beta version, so some bugs may still be present
- Expect instability in certain edge cases
- Feedback is highly appreciated during testing phase
π£οΈ Roadmap
- Full release v3.0.0 planned for end of next month
- Focus on stability, security improvements, and UI polish