]> git.mjollnir.org Git - moodle.git/commitdiff
Non-admins can use the component-install class
authorstronk7 <stronk7>
Thu, 9 Mar 2006 23:55:46 +0000 (23:55 +0000)
committerstronk7 <stronk7>
Thu, 9 Mar 2006 23:55:46 +0000 (23:55 +0000)
lib/componentlib.class.php

index ff32fb8363ec50aaf24a5404567ea8bf61893382..95095dc2c80a5d6a65f182d959e001da78eae510 100644 (file)
@@ -202,16 +202,10 @@ class component_installer {
 
         $this->requisitesok = false;
 
-    /// Check for admin (this will be out in the future)
-        if (!isadmin()) {
-            $this->errorstring='onlyadmins';
-            return false;
-        } else {
         /// Check for fopen remote enabled
-            if (!ini_get('allow_url_fopen')) {
-                $this->errorstring='remotedownloadnotallowed';
-                return false;
-            }
+        if (!ini_get('allow_url_fopen')) {
+            $this->errorstring='remotedownloadnotallowed';
+            return false;
         }
     /// Check that everything we need is present
         if (empty($this->sourcebase) || empty($this->zippath) || empty($this->zipfilename)) {