Images.php
authoredward <edward@roojs.com>
Wed, 2 Dec 2015 08:10:40 +0000 (16:10 +0800)
committeredward <edward@roojs.com>
Wed, 2 Dec 2015 08:10:40 +0000 (16:10 +0800)
Images.php

index 70d5365..bcbcde2 100644 (file)
@@ -153,7 +153,7 @@ class Pman_Core_Images extends Pman
             
         }
         
-        if(!$this->hasPerm($img)){
+        if(!$this->hasPermission($img)){
             header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
                 urlencode("image has been removed or deleted."));
         }
@@ -162,6 +162,9 @@ class Pman_Core_Images extends Pman
         exit;
     }
     
+    function hasPermission($img) {
+        return true;
+    }
     
     function post()
     {