mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
fix the user_uuid missing from transaction tables (#7026)
Co-authored-by: Tim Fry <tim@fusionpbx.com>
This commit is contained in:
@@ -316,6 +316,14 @@
|
||||
if (isset($params['domain_uuid'])) {
|
||||
$this->domain_uuid = $params['domain_uuid'];
|
||||
}
|
||||
|
||||
//allow passed user_uuid in the constructor to override the session user_uuid
|
||||
if (isset($params['user_uuid'])) {
|
||||
$this->user_uuid = $params['user_uuid'];
|
||||
} else {
|
||||
//try to determine the current user_uuid using the session
|
||||
$this->user_uuid = (!empty($_SESSION['user_uuid']) ? $_SESSION['user_uuid'] : null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user