Uniqueness check
Full path to the JavaScript file
src/controllers/helpers.js
Function(s)/scope targeted
helpers.notAllowed
Relevant Qlty output
Function with high complexity (count = 14): notAllowed
125 helpers.notAllowed = async function (req, res, error) {
126 ({ error } = await plugins.hooks.fire('filter:helpers.notAllowed', { req, res, error }));
127
128 await plugins.hooks.fire('response:helpers.notAllowed', { req, res, error });
129 if (res.headersSent) {
130 return;
[hid 33 additional lines]