Only suspend over bandwidth when station is active
This commit is contained in:
parent
09316041c6
commit
e3b0a93ebb
|
@ -160,7 +160,8 @@ class ApiController extends Zend_Controller_Action
|
|||
Application_Model_Preference::setBandwidthLimitUpdateTimer();
|
||||
|
||||
$usage = Application_Model_Preference::getBandwidthLimitCounter();
|
||||
if ($usage > Application_Model_Preference::getBandwidthLimit()) {
|
||||
if (($usage > Application_Model_Preference::getBandwidthLimit()) &&
|
||||
(Application_Model_Preference::getProvisioningStatus() == PROVISIONING_STATUS_ACTIVE)) {
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
// Hacky way to get the user ID...
|
||||
$url = AIRTIMEPRO_API_URL . "/station/" . $CC_CONFIG['rabbitmq']['user'] . "/suspend";
|
||||
|
|
Loading…
Reference in New Issue