mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-15 06:47:08 -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
3.1 KiB
PHP
51 lines
3.1 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' => '您不能刪除admin用戶',
|
|
'error_grant_change_disallowed' => '演示中禁用了权限更改。',
|
|
'error_password_change_disallowed' => '演示中禁用了密码更改。',
|
|
'error_updating_admin' => '',
|
|
'error_updating_demo_admin' => '您不能更改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' => 'Add at least one grant for each module',
|
|
'successful_adding' => '新增員工資料成功',
|
|
'successful_change_password' => '',
|
|
'successful_deleted' => '成功刪除員工資料',
|
|
'successful_updating' => '成功更新員工資料',
|
|
'system_language' => '',
|
|
'unsuccessful_change_password' => '',
|
|
'update' => '更新員工',
|
|
'username' => '帳號',
|
|
'username_duplicate' => '',
|
|
'username_minlength' => '帳號必需為五個字元以上',
|
|
'username_required' => '帳號為必填',
|
|
];
|