LT-160: Create user accounts and require login for access by using active-entry package

This commit is contained in:
Aysel Afsar committed 2016-01-27 08:35:06 -05:00
1 parent 4e38bbfa0b
commit 59a6905eb0
5 files changed
+47 -5

No files matched your search

+12 -2
View File
@@ -28,11 +28,21 @@ var routerOptions = {
};
Router.route('/', function() {
this.render('worklist', routerOptions);
// Check user is logged in
if (!Meteor.user() || !Meteor.userId()) {
this.render('entrySignIn', routerOptions);
} else{
this.render('worklist', routerOptions);
}
});
Router.route('/worklist', function() {
this.render('worklist', routerOptions);
// Check user is logged in
if (!Meteor.user() || !Meteor.userId()) {
this.render('entrySignIn', routerOptions);
} else{
this.render('worklist', routerOptions);
}
});
Router.route('/viewer/:_id', {