Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 9c8950bf

Přidáno uživatelem Ondřej Fibich před téměř 6 roky(ů)

Issue #1096: Big debtor message + notification auto activation e-mail report

Zobrazit rozdíly:

application/controllers/messages.php
if (!$message->id)
Controller::error(RECORD);
if (($message->id == Message_Model::PAYMENT_NOTICE_MESSAGE ||
$message->id == Message_Model::DEBTOR_MESSAGE ||
$message->id == Message_Model::RECEIVED_PAYMENT_NOTICE_MESSAGE) && !Settings::get('finance_enabled'))
if (!Settings::get('finance_enabled') &&
Message_Model::is_finance_message($message->type))
{
Controller::error(ACCESS);
}
......
// record doesn't exist
if (!$message->id)
Controller::error(RECORD);
if (($message->id == Message_Model::PAYMENT_NOTICE_MESSAGE ||
$message->id == Message_Model::DEBTOR_MESSAGE ||
$message->id == Message_Model::RECEIVED_PAYMENT_NOTICE_MESSAGE) &&
!Settings::get('finance_enabled'))
if (!Settings::get('finance_enabled') &&
Message_Model::is_finance_message($message->type))
{
Controller::error(ACCESS);
}
......
Controller::error(RECORD);
}
if (($message->id == Message_Model::PAYMENT_NOTICE_MESSAGE ||
$message->id == Message_Model::DEBTOR_MESSAGE) &&
!Settings::get('finance_enabled'))
if (!Settings::get('finance_enabled') &&
Message_Model::is_finance_message($message->type))
{
Controller::error(ACCESS);
}
......
// shows beetween page only for interrupt payment notice and debtor
if ($message->type == Message_Model::PAYMENT_NOTICE_MESSAGE ||
$message->type == Message_Model::DEBTOR_MESSAGE)
$message->type == Message_Model::DEBTOR_MESSAGE ||
$message->type == Message_Model::BIG_DEBTOR_MESSAGE)
{
if (!isset($_POST) || !isset($_POST['ids']))
{
......
{
$message = new Message_Model($this->message_id);
if ($message->type != Message_Model::DEBTOR_MESSAGE &&
if ($message->type != Message_Model::BIG_DEBTOR_MESSAGE &&
$message->type != Message_Model::DEBTOR_MESSAGE &&
$message->type != Message_Model::PAYMENT_NOTICE_MESSAGE &&
$message->type != Message_Model::USER_MESSAGE)
{

Také k dispozici: Unified diff