SuiteCRM-Core/public/legacy/modules/ACL
Moises E. Puyosa 6c571ef5d6 Fix #699 - Grant unconditional ACL access to Employees module
In legacy (Suite 7), the Employees module has no ACL integration — Employee.php does not implement bean_implements('ACL'), has no acl_actions records, and access is always granted. Restrictions (edit own record only, delete admin only) are enforced at the controller level.

In SuiteCRM 8, the UserACLHandler blocks non-admin users from accessing Employees because ACLAction::userHasAccess() fails when no acl_actions records exist.

This fix adds an Employees special case in ACLController::checkAccess() that returns true unconditionally, matching the legacy behavior.

Existing controller-level guards remain unchanged:
- Edit: own record only (controller.php:52-60)
- Delete: admin only (controller.php:62-77)
- Save: own record only (Employee.php:304-326)
- Export: admin only (Employee.php:188-220)
- Create: admin only (Menu.php:56-58)
2026-03-24 15:08:48 +00:00
..
language Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
metadata Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
ACLController.php Fix #699 - Grant unconditional ACL access to Employees module 2026-03-24 15:08:48 +00:00
ACLJSController.php Merge next into suite 8 2023-07-21 15:22:52 +01:00
Forms.php Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
install_actions.php Merge commit '114b895b6d' into merge_develop 2021-08-30 10:18:23 +01:00
List.php Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
Menu.php Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
remove_actions.php Merge next into suite 8 2023-06-30 10:54:51 +01:00
Save.php Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00
vardefs.php Merge commit '8e4cc94994' as 'public/legacy' 2021-03-31 15:37:32 +01:00