Fix permissions problems when move to the trash.

This commit is contained in:
BJRambo 2016-10-01 17:54:44 +09:00
parent 2108d96578
commit 81f9727fd9
2 changed files with 5 additions and 2 deletions

View file

@ -19,7 +19,11 @@ class trashAdminController extends trash
{
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');