1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Allow session service to hold secure viewing token

This commit is contained in:
Harvey Kandola 2019-01-15 20:15:53 +00:00
parent 3da4144c1b
commit 924b707db0

View file

@ -25,6 +25,7 @@ export default SimpleAuthSession.extend({
currentFolder: null,
isMac: false,
isMobile: false,
secureToken: '',
hasAccounts: computed('isAuthenticated', 'session.content.authenticated.user', function () {
return this.get('session.authenticator') !== 'authenticator:anonymous' && this.get('session.content.authenticated.user.accounts').length > 0;