Skip to content

Commit

Permalink
fix(category): do not access page if the plugin is not active
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Nov 3, 2022
1 parent 4cd4f60 commit a959839
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions front/category.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@

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

Session::checkRight("entity", UPDATE);
// Check if plugin is activated...
if (!(new Plugin())->isActivated('formcreator')) {
Html::displayNotFoundError();
}

Plugin::load('formcreator', true);
Session::checkRight('entity', UPDATE);

$dropdown = new PluginFormcreatorCategory();

Expand Down

0 comments on commit a959839

Please sign in to comment.