Files
opensourcepos/app/Language/en/Employees.php
T
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' => 'Unable to delete selected employee(s), one or more of the has processed sales or you are trying to delete your account.',
'change_employee' => '',
'change_password' => 'Change Password',
'clerk' => '',
'commission' => '',
'confirm_delete' => 'Are you sure you want to delete the selected employee(s)?',
'confirm_restore' => 'Are you sure you want to restore selected employee(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' => 'You cannot remove your own minimum module access grants.',
'error_deleting_admin' => 'You cannot delete an admin user.',
'error_deleting_demo_admin' => 'You can not delete the demo admin user.',
'error_grant_change_disallowed' => 'Grant changes are disabled in this demo.',
'error_password_change_disallowed' => 'Password changes are disabled in this demo.',
'error_updating_admin' => 'You cannot modify an admin user.',
'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' => 'Password must be at least 8 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 updated employee',
'system_language' => 'System Language',
'unsuccessful_change_password' => 'Password change failed.',
'update' => 'Update Employee',
'username' => 'Username',
'username_duplicate' => 'Employee username is already in use. Please choose another one.',
'username_minlength' => 'Username must be at least 5 characters in length.',
'username_required' => 'Username is a required field.',
];