mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
parent
2840740286
commit
9389b96f95
2 changed files with 8 additions and 23 deletions
|
|
@ -250,23 +250,15 @@ class commentController extends comment
|
|||
|
||||
/**
|
||||
* Authorization of the comments
|
||||
* @param int $comment_srl
|
||||
* @param bool $session
|
||||
* available only in the current connection of the session value
|
||||
* @return void
|
||||
*/
|
||||
function addGrant($comment_srl, $session = false)
|
||||
function addGrant($comment_srl)
|
||||
{
|
||||
$comment = getModel('comment')->getComment($comment_srl);
|
||||
if ($comment->isExists())
|
||||
{
|
||||
if ($session)
|
||||
{
|
||||
$comment->setGrantForSession();
|
||||
}
|
||||
else
|
||||
{
|
||||
$comment->setGrant();
|
||||
}
|
||||
$comment->setGrant();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -589,7 +581,7 @@ class commentController extends comment
|
|||
// grant autority of the comment
|
||||
if(!$manual_inserted)
|
||||
{
|
||||
$this->addGrant($obj->comment_srl, true);
|
||||
$this->addGrant($obj->comment_srl);
|
||||
}
|
||||
|
||||
if(!$manual_inserted)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue