mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue