Check the permission when running the trash

This commit is contained in:
BJRambo 2016-10-03 18:03:31 +09:00
parent 81f9727fd9
commit 61e0437d9e
3 changed files with 11 additions and 15 deletions

View file

@ -17,15 +17,6 @@ class trashAdminController extends trash
*/
function insertTrash($obj)
{
if(!Context::get('is_logged'))
{
$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');
$oTrashVO = new TrashVO();