Fix hardcoded admin route
This commit is contained in:
parent
05ba2c0215
commit
9c3d9860b9
|
@ -116,7 +116,7 @@ class CommentsPlugin extends Plugin
|
||||||
'onDataTypeExcludeFromDataManagerPluginHook' => ['onDataTypeExcludeFromDataManagerPluginHook', 0],
|
'onDataTypeExcludeFromDataManagerPluginHook' => ['onDataTypeExcludeFromDataManagerPluginHook', 0],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (strpos($uri->path(), '/admin/' . $this->route) === false) {
|
if (strpos($uri->path(), $this->config->get('plugins.admin.route') . '/' . $this->route) === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue