Merge branch 'cc-5709-airtime-analyzer-buy-now' into cc-5709-airtime-analyzer-buy-now-saas
This commit is contained in:
commit
54590de6ee
|
@ -5,7 +5,7 @@ define('VAT_RATE', 19.00);
|
||||||
class BillingController extends Zend_Controller_Action {
|
class BillingController extends Zend_Controller_Action {
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
//Two of the actions in this controller return JSON because they're used for AJAX:
|
//Two of the actions in this controller return JSON because they're used for AJAX:
|
||||||
$ajaxContext = $this->_helper->getHelper('AjaxContext');
|
$ajaxContext = $this->_helper->getHelper('AjaxContext');
|
||||||
$ajaxContext->addActionContext('vat-validator', 'json')
|
$ajaxContext->addActionContext('vat-validator', 'json')
|
||||||
|
|
|
@ -125,6 +125,10 @@ class UserController extends Zend_Controller_Action
|
||||||
|
|
||||||
public function editUserAction()
|
public function editUserAction()
|
||||||
{
|
{
|
||||||
|
if (Application_Model_User::getCurrentUser()->isSuperAdmin()) {
|
||||||
|
$this->_redirect('billing/client');
|
||||||
|
}
|
||||||
|
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$form = new Application_Form_EditUser();
|
$form = new Application_Form_EditUser();
|
||||||
if ($request->isPost()) {
|
if ($request->isPost()) {
|
||||||
|
|
Loading…
Reference in New Issue