mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Update references to deprecated global function checkCSRF()
This commit is contained in:
parent
cc17bbe05a
commit
0c018f1daf
6 changed files with 9 additions and 9 deletions
|
|
@ -607,7 +607,7 @@ class DocumentController extends Document
|
|||
*/
|
||||
function insertDocument($obj, $manual_inserted = false, $isRestore = false, $isLatest = true)
|
||||
{
|
||||
if (!$manual_inserted && !checkCSRF())
|
||||
if (!$manual_inserted && !Rhymix\Framework\Security::checkCSRF())
|
||||
{
|
||||
return new BaseObject(-1, 'msg_security_violation');
|
||||
}
|
||||
|
|
@ -974,7 +974,7 @@ class DocumentController extends Document
|
|||
*/
|
||||
function updateDocument($source_obj, $obj, $manual_updated = FALSE)
|
||||
{
|
||||
if(!$manual_updated && !checkCSRF())
|
||||
if(!$manual_updated && !Rhymix\Framework\Security::checkCSRF())
|
||||
{
|
||||
return new BaseObject(-1, 'msg_security_violation');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue