mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +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
|
|
@ -331,7 +331,11 @@ class documentController extends document
|
|||
*/
|
||||
function addGrant($document_srl)
|
||||
{
|
||||
$_SESSION['own_document'][$document_srl] = true;
|
||||
$oDocument = getModel('document')->getDocument($document_srl);
|
||||
if ($oDocument->isExists())
|
||||
{
|
||||
$oDocument->setGrant();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue