Skip to content

Commit

Permalink
fix(category): don't activate plugin to access categories
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Nov 3, 2022
1 parent 14d3ed7 commit 4cd4f60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion front/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@

include ('../../../inc/includes.php');

Plugin::load('formcreator', true);
// Check if plugin is activated...
if (!(new Plugin())->isActivated('formcreator')) {
Html::displayNotFoundError();
}

$dropdown = new PluginFormcreatorCategory();
include (GLPI_ROOT . "/front/dropdown.common.php");

0 comments on commit 4cd4f60

Please sign in to comment.