Files
objecttothis 84bddcdd88 Feature admin account safeguards (#4657)
fix(employees): harden permissions UI and access control

- Prevent admins from removing their own minimum module grants (employees, home, office)
- Add session_status check before session regeneration
- Disable submit button and return no_access view for AJAX requests
- Replace fade class with active-only for Bootstrap compatibility
- Update permission toggle selectors to .module-toggle
- Add error_cannot_remove_own_minimum_grant translations for Armenian, Bulgarian, Georgian, Swedish, and Ukrainian

---------

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-08-27 11:29:32 +04:00

51 lines
3.6 KiB
PHP

<?php
return [
'administrator' => '',
'basic_information' => 'Information',
'cannot_be_deleted' => 'Hindi maaaring tanggalin ang mga napiling empleyado, isa o higit pa sa kanila ang may naiprosesong benta o sinusubukan mong tanggalin ang iyong sariling account.',
'change_employee' => '',
'change_password' => 'Change Password',
'clerk' => '',
'commission' => '',
'confirm_delete' => 'Are you sure you want to delete the selected Supplier(s)?',
'confirm_restore' => 'Are you sure you want to restore selected entry(s)?',
'current_password' => 'Current Password',
'current_password_invalid' => 'Current Password is invalid.',
'employee' => 'Employee',
'error_adding_updating' => 'Employee add or update failed.',
'error_cannot_remove_own_minimum_grant' => 'Hindi mo maaaring tanggalin ang iyong sariling pinakamababang pahintulot sa access ng module.',
'error_deleting_admin' => '',
'error_deleting_demo_admin' => 'You can not delete the demo admin user.',
'error_grant_change_disallowed' => 'Ang mga pagbabago sa pahintulot ay hindi pinagana sa demo na ito.',
'error_password_change_disallowed' => 'Ang mga pagbabago ng password ay hindi pinagana sa demo na ito.',
'error_updating_admin' => '',
'error_updating_demo_admin' => 'You can not change the demo admin user.',
'language' => 'Language',
'login_info' => 'Login',
'manager' => '',
'new' => 'New Employee',
'none_selected' => 'You have not selected any employee(s) to delete.',
'one_or_multiple' => 'employee(s)',
'password' => 'Password',
'password_minlength' => 'Username must be at least 5 characters in length.',
'password_must_match' => 'Passwords do not match.',
'password_not_must_match' => 'Current password and new password must be unique.',
'password_required' => 'Password is required.',
'permission_desc' => 'Check the boxes below to grant access to modules.',
'permission_info' => 'Permissions',
'repeat_password' => 'Password Again',
'subpermission_required' => 'Add at least one grant for each module.',
'successful_adding' => 'Employee add successful.',
'successful_change_password' => 'Password change successful.',
'successful_deleted' => 'You have successfully deleted',
'successful_updating' => 'You have successfully added customer',
'system_language' => 'System Language',
'unsuccessful_change_password' => 'Password change failed.',
'update' => 'Update Employee',
'username' => 'Username',
'username_duplicate' => '',
'username_minlength' => 'Password must be at least 8 characters in length.',
'username_required' => 'Username is a required field.',
];