mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Extension fix cache not clearing
The cache was broken for user users without the extension_user_context permission
This commit is contained in:
@@ -656,6 +656,13 @@
|
||||
}
|
||||
|
||||
//clear the cache
|
||||
if (!permission_exists("extension_user_context") && $action == "update") {
|
||||
$sql = "select user_context from v_extensions ";
|
||||
$sql .= "where extension_uuid = :extension_uuid ";
|
||||
$parameters['extension_uuid'] = $extension_uuid;
|
||||
$database = new database;
|
||||
$user_context = $database->select($sql, $parameters, 'column');
|
||||
}
|
||||
$cache = new cache;
|
||||
$cache->delete("directory:".$extension."@".$user_context);
|
||||
if (permission_exists('number_alias') && strlen($number_alias) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user