mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added database changes to changelog (need to update database/quexs.sql)
Added operator_chat_enabled function Added sUpervisor chat tab to index updated chat to be able to send and receive
This commit is contained in:
@@ -91,6 +91,31 @@ function is_using_availability($case_id)
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return if chat is enabled for this operator
|
||||
*
|
||||
* @param int $operator_id the operator id
|
||||
*
|
||||
* @return bool True if enabled, false if not
|
||||
* @author Adam Zammit <adam.zammit@acspri.org.au>
|
||||
* @since 2013-07-16
|
||||
*/
|
||||
function operator_chat_enabled($operator_id)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$sql = "SELECT chat_enable
|
||||
FROM `operator`
|
||||
WHERE operator_id = '$operator_id'";
|
||||
|
||||
$c = $db->GetOne($sql);
|
||||
|
||||
if ($c == 1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return if VOIP is enabled on an operator by operator basis
|
||||
* Will always return false if VOIP is globally disabled
|
||||
|
||||
Reference in New Issue
Block a user