mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
Fix permissions problems when move to the trash.
This commit is contained in:
parent
2108d96578
commit
81f9727fd9
2 changed files with 5 additions and 2 deletions
|
|
@ -951,7 +951,6 @@ class documentController extends document
|
||||||
return new Object(-1, 'msg_admin_document_no_move_to_trash');
|
return new Object(-1, 'msg_admin_document_no_move_to_trash');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$trash_args->module_srl = $oDocument->get('module_srl');
|
$trash_args->module_srl = $oDocument->get('module_srl');
|
||||||
$obj->module_srl = $oDocument->get('module_srl');
|
$obj->module_srl = $oDocument->get('module_srl');
|
||||||
// Cannot throw data from the trash to the trash
|
// Cannot throw data from the trash to the trash
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,11 @@ class trashAdminController extends trash
|
||||||
{
|
{
|
||||||
if(!Context::get('is_logged'))
|
if(!Context::get('is_logged'))
|
||||||
{
|
{
|
||||||
return new Object(-1, 'msg_not_permitted');
|
$trash_array = unserialize($obj->serializedObject);
|
||||||
|
if($_SERVER['REMOTE_ADDR'] !== $trash_array['ipaddress'])
|
||||||
|
{
|
||||||
|
return new Object(-1, 'msg_not_permitted');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$logged_info = Context::get('logged_info');
|
$logged_info = Context::get('logged_info');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue