Skip to content

Commit a959839

Browse files
committed
fix(category): do not access page if the plugin is not active
1 parent 4cd4f60 commit a959839

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

front/category.form.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@
3131

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

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

36-
Plugin::load('formcreator', true);
39+
Session::checkRight('entity', UPDATE);
3740

3841
$dropdown = new PluginFormcreatorCategory();
3942

0 commit comments

Comments
 (0)