mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Check the permission when running the trash
This commit is contained in:
parent
81f9727fd9
commit
61e0437d9e
3 changed files with 11 additions and 15 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue