FOGProject/fog-too

View on GitHub
api/policies/isAuthenticated.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(req, res, next) {
  // Check session
  if (req.session.me) {
    User.findOne({id: req.session.me}).populateAll().exec(function(err, user) {
      if (err || !user ) {
Severity: Minor
Found in api/policies/isAuthenticated.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status