mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-12 21:37:23 -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.9 KiB
PHP
51 lines
2.9 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' => '',
|
|
];
|