mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
Restrict addGrant() to current request only
This commit is contained in:
parent
e4fe2430d3
commit
9143493f13
6 changed files with 22 additions and 14 deletions
|
|
@ -93,7 +93,7 @@ class commentItem extends Object
|
|||
|
||||
function isGranted()
|
||||
{
|
||||
if($_SESSION['own_comment'][$this->comment_srl])
|
||||
if($_SESSION['granted_comment'][$this->comment_srl])
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
|
@ -130,7 +130,7 @@ class commentItem extends Object
|
|||
|
||||
function setGrantForSession()
|
||||
{
|
||||
$_SESSION['own_comment'][$this->comment_srl] = true;
|
||||
$_SESSION['granted_comment'][$this->comment_srl] = true;
|
||||
$this->setGrant();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue