1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-08 06:55:28 +02:00

session check fix

This commit is contained in:
Harvey Kandola 2016-07-07 11:15:45 -07:00
parent 51a04efcb6
commit 96bd8e6add

View file

@ -23,7 +23,7 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
beforeModel() { beforeModel() {
return this.get('appMeta').boot().then(data => { 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); return this.get('session').authenticate('authenticator:anonymous', data);
} }