app/render-helpers.js
Function navLinks
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const navLinks = (req, res, next) => {
// Uses login state and privileges to generate the links to
// include in the user navigation bar
// directly skip, if no session exists