UpdateDatabase/VerifyExtensions.php
authorjohn <john@roojs.com>
Wed, 3 Oct 2018 03:27:21 +0000 (11:27 +0800)
committerjohn <john@roojs.com>
Wed, 3 Oct 2018 03:27:21 +0000 (11:27 +0800)
UpdateDatabase/VerifyExtensions.php

index 89dc1d3..07a62ae 100644 (file)
@@ -10,6 +10,16 @@ class Pman_Core_UpdateDatabase_VerifyExtensions extends Pman
     
     function getAuth()
     {
+        if ($_SERVER['HTTP_HOST'] == 'localhost') {
+            return true;
+        }
+        
+        $this->getAuthUser();
+        
+        if(empty($this->authUser)) {
+            return false;
+        }
+        
         return true;
     }