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:
parent
51a04efcb6
commit
96bd8e6add
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue