From 96bd8e6add24b1a17de121f3417b535cb446c889 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 7 Jul 2016 11:15:45 -0700 Subject: [PATCH] session check fix --- app/app/routes/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app/routes/application.js b/app/app/routes/application.js index 5c021732..ea955a81 100644 --- a/app/app/routes/application.js +++ b/app/app/routes/application.js @@ -23,7 +23,7 @@ export default Ember.Route.extend(ApplicationRouteMixin, { beforeModel() { return this.get('appMeta').boot().then(data => { - if (data.allowAnonymousAccess) { + if (this.get('session.session.authenticator') !== "authenticator:documize" && data.allowAnonymousAccess) { return this.get('session').authenticate('authenticator:anonymous', data); }