1) user invitation 2) app access control 3) txn quota guard
This commit is contained in:
@@ -39,6 +39,12 @@ if ($action === 'update') {
|
||||
$_SESSION['login_company_id'] = $target_company_id;
|
||||
$_SESSION['login_role'] = $target_map['role'] ?? 'viewer';
|
||||
|
||||
if (($_SESSION['login_license'] ?? 'user') === 'owner') {
|
||||
$_SESSION['login_app_access'] = $target_map['user_app_access'] ?? 'wms';
|
||||
} else {
|
||||
$_SESSION['login_app_access'] = $target_map['app_access'] ?? 'wms';
|
||||
}
|
||||
|
||||
$answer['success'] = 1;
|
||||
$answer['message'] = 'Switched successfully.';
|
||||
exit(json_encode($answer));
|
||||
|
||||
Reference in New Issue
Block a user