Skip to content

Commit

Permalink
Non-admins can use the component-install class
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 9, 2006
1 parent f099f4d commit 2489a6f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/componentlib.class.php
Expand Up @@ -202,16 +202,10 @@ function check_requisites() {

$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)) {
Expand Down

0 comments on commit 2489a6f

Please sign in to comment.