Problem: Billing is always on
Solution: Make billing configurable through LIBRETIME_ENABLE_BILLING and deactivate it This should catch all the changes needed to deactive billing in LibreTime. * [x] only call billing when it is enabled * [x] let super admins edit their info * [x] dont link to billing if it is disabled
This commit is contained in:
parent
4557395a86
commit
6e03863fa1
11 changed files with 176 additions and 164 deletions
|
@ -131,7 +131,7 @@ class Application_Form_EditUser extends Zend_Form
|
|||
$timezone->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($timezone);
|
||||
|
||||
if (Application_Model_User::getCurrentUser()->isSuperAdmin()) {
|
||||
if (LIBRETIME_ENABLE_BILLING === true && Application_Model_User::getCurrentUser()->isSuperAdmin()) {
|
||||
$elemsToDisable = array($password, $passwordVerify, $email, $firstName, $lastName,
|
||||
$cellPhone, $skype, $jabber);
|
||||
foreach ($elemsToDisable as $element) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue