From 2489a6f6fe229d048938d1cc842fe568136a4fe3 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 9 Mar 2006 23:55:46 +0000 Subject: [PATCH] Non-admins can use the component-install class --- lib/componentlib.class.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/componentlib.class.php b/lib/componentlib.class.php index ff32fb8363..95095dc2c8 100644 --- a/lib/componentlib.class.php +++ b/lib/componentlib.class.php @@ -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)) { -- 2.39.5