Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Commit 408bb36

Browse files
committed
Merge branch 'release/1.2.19'
2 parents 759eb6a + 53fcd77 commit 408bb36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+456
-97
lines changed

CHANGELOG.markdown

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# OpenVBX Change Log
22

3+
## OpenVBX 1.2.19
4+
5+
- Fix highlighting of plugin generated pages in sidebar menu. (Thanks @jpwalters)
6+
- Allow Administrator users to "promote" other users to Administrator. (Thanks @jpwalters)
7+
- Allow conferences to be recorded. (Thanks @jpwalters)
8+
- Add programmatic underpinnings to allow for easy recording of dialed calls. (Thanks @jpwalters)
9+
- Doc updates to assist static analysis tools.
10+
- Load Twilio JS via protocol relative url. (Thanks @trenton42)
11+
12+
313
## OpenVBX 1.2.18
414

515
- Fix implementation of several methods by making them static.

OpenVBX/config/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
22

3-
$config['version'] = '1.2.18';
3+
$config['version'] = '1.2.19';

OpenVBX/controllers/account.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Account extends User_Controller {
3535
private $editable_fields = array('first_name',
3636
'last_name',
3737
'email',
38+
'is_admin',
3839
'pin',
3940
'notification');
4041
protected $user_id;
@@ -140,9 +141,16 @@ public function edit($user_id = null)
140141
$val = $this->input->post($field);
141142
if (in_array($field, $user->admin_fields))
142143
{
143-
if (($val || $val === '0') && $is_admin)
144+
if($user->id != $this->session->userdata('user_id') && $is_admin)
144145
{
145-
$user->$field = $val;
146+
if (($val || $val === '0'))
147+
{
148+
$user->$field = $val;
149+
}
150+
else
151+
{
152+
$user->$field = '0';
153+
}
146154
}
147155
}
148156
else

OpenVBX/controllers/accounts.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
* Contributor(s):
2020
**/
2121

22+
/**
23+
* Class Accounts
24+
* @property VBX_User $vbx_user
25+
* @property VBX_Group $vbx_group
26+
* @property VBX_Device $vbx_device
27+
*/
2228
class Accounts extends User_Controller {
2329

2430
function __construct()

OpenVBX/controllers/client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
**/
2121

2222
class ClientException extends Exception {}
23-
/*
24-
Client handles all public access information for determining version, theming, i18n.
23+
24+
/**
25+
* Client handles all public access information for determining version, theming, i18n.
26+
* @property VBX_Theme $vbx_theme
2527
*/
2628
class Client extends MY_Controller
2729
{

OpenVBX/controllers/flows.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
require_once(APPPATH.'libraries/twilio.php');
2323

24+
/**
25+
* Class Flows
26+
* @property MY_Pagination $pagination
27+
*/
2428
class Flows extends User_Controller {
2529

2630
private $flows_per_page = '50';

OpenVBX/controllers/iframe.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class Iframe extends User_Controller {
2929
function index() {
3030
$data = $this->init_view_data();
3131

32-
$twilio_js = sprintf('%s://static.twilio.com/libs/twiliojs/%s/twilio%s.js',
33-
'http'.(is_ssl() ? 's' : ''),
32+
$twilio_js = sprintf('//static.twilio.com/libs/twiliojs/%s/twilio%s.js',
3433
$this->twilio_js_version,
3534
($this->config->item('use_unminimized_js') ? '' : '.min')
3635
);

OpenVBX/controllers/install.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,29 @@
2121

2222
class InstallException extends Exception {}
2323

24+
/**
25+
* Class Install
26+
* @property CI_Loader $load
27+
* @property CI_Config $config
28+
* @property CI_Input $input
29+
*/
2430
class Install extends Controller {
2531

2632
public $tenant;
2733

2834
public $tests;
2935
public $pass;
30-
36+
37+
protected $user = array();
38+
protected $database = array();
39+
protected $openvbx_settings = array();
40+
protected $openvbx = array();
41+
3142
private $account;
3243
protected $min_php_version = MIN_PHP_VERSION;
3344

45+
protected $cache;
46+
3447
public function __construct()
3548
{
3649
parent::Controller();

OpenVBX/controllers/iphone.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
/**
4+
* Class iPhone
5+
* @property VBX_Message $vbx_message
6+
*/
37
class iPhone extends MY_Controller {
48

59
public function install() {

OpenVBX/controllers/messages/details.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
class DetailsException extends Exception {}
2525

26+
/**
27+
* Class Details
28+
* @property VBX_Call $vbx_call
29+
*/
2630
class Details extends User_Controller
2731
{
2832
const PAGE_SIZE = 20;

0 commit comments

Comments
 (0)