VerifyAccess.php
authoredward <edward@roojs.com>
Thu, 15 Feb 2018 05:11:42 +0000 (13:11 +0800)
committeredward <edward@roojs.com>
Thu, 15 Feb 2018 05:11:42 +0000 (13:11 +0800)
VerifyAccess.php

index f6eba05..5131224 100644 (file)
@@ -65,7 +65,9 @@ class Pman_Core_VerifyAccess extends Pman
         
         $o = clone($core_ip_access);
         
-        $core_ip_access->status = empty($_REQUEST['status']) ? 0 : $_REQUEST['status'];
+        $core_ip_access->setFrom(array(
+            'status' => empty($_REQUEST['status']) ? 0 : $_REQUEST['status']
+        ));
         
         if($core_ip_access->status == -2){
             
@@ -77,6 +79,8 @@ class Pman_Core_VerifyAccess extends Pman
         
         $core_ip_access->update($o);
         
+        $this->jok('OK');
+        
     }