X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=VerifyAccess.php;fp=VerifyAccess.php;h=0780aefa6e8d4c78da76e96da36032774f247ac8;hb=7db8c48cb0e5e231d180d128bd4fc6b350743f82;hp=b658e57215c357dc67e22e122be6c2c511715346;hpb=244ecd7c6c0dc2644980afa82659a3567bad446d;p=Pman.Core diff --git a/VerifyAccess.php b/VerifyAccess.php index b658e572..0780aefa 100644 --- a/VerifyAccess.php +++ b/VerifyAccess.php @@ -34,22 +34,12 @@ class Pman_Core_VerifyAccess extends Pman $this->jerr('[System Error] This site does not using IP management'); } - $core_person = DB_DataObject::factory('core_person'); - - $ff->Pman['XMPP']['to'] = 'edward@roojs.com'; // testing... - if( - empty($id) || - empty($key) || - empty($ff->Pman['ip_management']) || - empty($ff->Pman['XMPP']) || - empty($ff->Pman['XMPP']['to']) || - !$core_person->get('email', $ff->Pman['XMPP']['to']) || - !$core_ip_access->get($id) || - $core_ip_access->authorized_key != $key - ) { - $this->jerr('Invalid URL'); + $core_person = DB_DataObject::factory('core_person'); + + if(!$core_person->get('email', $ff->Pman['XMPP']['to'])) { + $this->jerr('Invalid Admin Setting'); } return;