Skip to content

Commit

Permalink
Made global pages (ex: control center pages) display when the "Enable…
Browse files Browse the repository at this point in the history
… on projects by default" setting is off. These two should not have been tied together to start this.
  • Loading branch information
mmcev106 committed Dec 8, 2016
1 parent 5578bd2 commit e82832e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
die("The requested module is currently disabled globally.");
}

$enabled = ExternalModules::getProjectSetting($prefix, $pid, ExternalModules::KEY_ENABLED);
if(!$enabled){
die("The requested module is currently disabled on this project.");
if($pid != null){
$enabled = ExternalModules::getProjectSetting($prefix, $pid, ExternalModules::KEY_ENABLED);
if(!$enabled){
die("The requested module is currently disabled on this project.");
}
}

$pagePath = ExternalModules::$MODULES_PATH . ExternalModules::getModuleDirectoryName($prefix, $version) . "/$page.php";
Expand Down

0 comments on commit e82832e

Please sign in to comment.