Browse Source

Fix missing instance of Addon::isEnabled in App

pull/6008/head
Hypolite Petovan 3 years ago
committed by GitHub
parent
commit
b6a0b686c4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/App.php

+ 1
- 1
src/App.php View File

@ -1772,7 +1772,7 @@ class App
}
$privateapps = Core\Config::get('config', 'private_addons', false);
if (is_array($this->addons) && in_array($this->module, $this->addons) && file_exists("addon/{$this->module}/{$this->module}.php")) {
if (Core\Addon::isEnabled($this->module) && file_exists("addon/{$this->module}/{$this->module}.php")) {
//Check if module is an app and if public access to apps is allowed or not
if ((!local_user()) && Core\Addon::isApp($this->module) && $privateapps) {
info(Core\L10n::t("You must be logged in to use addons. "));


Loading…
Cancel
Save