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
2.7 KiB
PHP

<?php
return [
'administrator' => '',
'basic_information' => '',
'cannot_be_deleted' => '',
'change_employee' => '',
'change_password' => '',
'clerk' => '',
'commission' => '',
'confirm_delete' => '',
'confirm_restore' => '',
'current_password' => '',
'current_password_invalid' => '',
'employee' => '',
'error_adding_updating' => '',
'error_cannot_remove_own_minimum_grant' => 'Δεν μπορείτε να αφαιρέσετε τα ελάχιστα δικαιώματα πρόσβασης των δικών σας μονάδων.',
'error_deleting_admin' => '',
'error_deleting_demo_admin' => '',
'error_grant_change_disallowed' => 'Οι αλλαγές δικαιωμάτων είναι απενεργοποιημένες σε αυτό το demo.',
'error_password_change_disallowed' => 'Οι αλλαγές κωδικού πρόσβασης είναι απενεργοποιημένες σε αυτό το demo.',
'error_updating_admin' => '',
'error_updating_demo_admin' => '',
'language' => '',
'login_info' => '',
'manager' => '',
'new' => '',
'none_selected' => '',
'one_or_multiple' => '',
'password' => '',
'password_minlength' => '',
'password_must_match' => '',
'password_not_must_match' => '',
'password_required' => '',
'permission_desc' => '',
'permission_info' => '',
'repeat_password' => '',
'subpermission_required' => '',
'successful_adding' => '',
'successful_change_password' => '',
'successful_deleted' => '',
'successful_updating' => '',
'system_language' => '',
'unsuccessful_change_password' => '',
'update' => '',
'username' => '',
'username_duplicate' => '',
'username_minlength' => '',
'username_required' => '',
];