RefreshDatabaseCache.php
authoredward <edward@roojs.com>
Thu, 31 Aug 2017 08:48:11 +0000 (16:48 +0800)
committeredward <edward@roojs.com>
Thu, 31 Aug 2017 08:48:11 +0000 (16:48 +0800)
RefreshDatabaseCache.php

index 8797970..ea9c20e 100644 (file)
@@ -15,8 +15,11 @@ class Pman_Core_RefreshDatabaseCache extends Pman
     static $cli_desc = "Refresh the database schema cache";
    
     var $cli = false;
-    function getAuth() {
-        
+    function getAuth() 
+    {
+        if($_SERVER['HTTP_HOST'] == 'localhost'){
+            return true;
+        }
         
         $ff = HTML_FlexyFramework::get();
         if (!empty($ff->cli)) {