mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-13 13:57:34 -04:00
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>
51 lines
2.8 KiB
PHP
51 lines
2.8 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' => 'უფლებების ცვლილებები დეაქტივირებულია ამ დემოში.',
|
|
'error_password_change_disallowed' => 'პაროლის ცვლილებები დეაქტივირებულია ამ დემოში.',
|
|
'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' => '',
|
|
];
|