diff options
Diffstat (limited to 'server/middlewares/validators/plugins.ts')
-rw-r--r-- | server/middlewares/validators/plugins.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/plugins.ts b/server/middlewares/validators/plugins.ts index 672299ee1..fcb461624 100644 --- a/server/middlewares/validators/plugins.ts +++ b/server/middlewares/validators/plugins.ts | |||
@@ -16,7 +16,7 @@ const servePluginStaticDirectoryValidator = [ | |||
16 | 16 | ||
17 | if (areValidationErrors(req, res)) return | 17 | if (areValidationErrors(req, res)) return |
18 | 18 | ||
19 | const plugin = PluginManager.Instance.getRegisteredPlugin(req.params.pluginName) | 19 | const plugin = PluginManager.Instance.getRegisteredPluginOrTheme(req.params.pluginName) |
20 | 20 | ||
21 | if (!plugin || plugin.version !== req.params.pluginVersion) { | 21 | if (!plugin || plugin.version !== req.params.pluginVersion) { |
22 | return res.sendStatus(404) | 22 | return res.sendStatus(404) |