Router.configure({
  layoutTemplate: 'layout',
});

Router.onBeforeAction(function() {
        var currentUser = Meteor.userId();
        var currentRoute = Router.current().route.getName();

        if(currentUser) {
            console.log("GLOBAL::onBeforeAction:logged:", currentRoute);
            this.next();
        } else {
            console.log("GLOBAL::onBeforeAction:NOTlogged:", currentRoute);
            console.log("should render login");
            // this.render("login");
            this.next();
        }
    },
    {
        // except: [
        //             'home',
        //             'register',
        //             'login',
        //             'application'
        //         ]
        only: ['backoffice']
    }
);


Router.route('/', {
    name: 'home'
});

Router.route('/application/success', {
    name: 'application.success'
});

Router.route('/backoffice', function() {
        this.redirect('/backoffice/list');
    }
);

Router.route('/backoffice/:tab', function() {
        this.render('backoffice', {
            data: function() {
                return {activeTab: this.params.tab};
            },
        });
    }
);

@@ -542,19 +542,16 @@
 %0A       
- //
  except:
@@ -552,35 +552,32 @@
 xcept: %5B%0A       
- //
              'ho
@@ -580,35 +580,32 @@
  'home',%0A       
- //
              're
@@ -613,34 +613,32 @@
 ister',%0A        
-//
              'lo
@@ -633,17 +633,16 @@
         
- 
 'login',
@@ -641,35 +641,32 @@
 'login',%0A       
- //
              'ap
@@ -683,19 +683,16 @@
 %0A       
- //
         
@@ -701,16 +701,19 @@
 %0A       
+ //
  only: %5B

Fix ecept/only logic