mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
Update point.controller.php
This commit is contained in:
parent
685486c86e
commit
9e678a8da9
1 changed files with 2 additions and 0 deletions
|
|
@ -420,10 +420,12 @@ class pointController extends point
|
||||||
// Get the defaul configurations of the Point Module
|
// Get the defaul configurations of the Point Module
|
||||||
$config = $oModuleModel->getModuleConfig('point');
|
$config = $oModuleModel->getModuleConfig('point');
|
||||||
// When the requested points are negative, compared it with the current point
|
// When the requested points are negative, compared it with the current point
|
||||||
|
$_SESSION['banned_document'][$obj->document_srl] = false;
|
||||||
if($config->disable_read_document == 'Y' && $point < 0 && abs($point)>$cur_point)
|
if($config->disable_read_document == 'Y' && $point < 0 && abs($point)>$cur_point)
|
||||||
{
|
{
|
||||||
$message = sprintf(Context::getLang('msg_disallow_by_point'), abs($point), $cur_point);
|
$message = sprintf(Context::getLang('msg_disallow_by_point'), abs($point), $cur_point);
|
||||||
$obj->add('content', $message);
|
$obj->add('content', $message);
|
||||||
|
$_SESSION['banned_document'][$obj->document_srl] = true;
|
||||||
return new Object(-1, $message);
|
return new Object(-1, $message);
|
||||||
}
|
}
|
||||||
// If not logged in, pass
|
// If not logged in, pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue