lucasgonze / Safeharbor.in

2 stars 0 forks source link

logged-in check failing for /dash and /panel #172

Closed lucasgonze closed 12 years ago

lucasgonze commented 12 years ago

If a user who is not logged in goes to /panel or /dash, need to redirect to login page. Instead we just do a failing borked view of the target page.

The error appears to be under one of these two lines:

    var logged_in = app.checkRole(app.ROLES.logged_in);
    app.get( '/panel', logged_in, getOpenDisputes);
lucasgonze commented 12 years ago

Fixed.