mirror of https://github.com/xwiki-labs/cryptpad
Fix isLoggedIn issue
This commit is contained in:
parent
c26560e3f9
commit
60862d9f87
|
@ -583,6 +583,7 @@ define([
|
|||
support: Util.find(store.proxy, ['mailboxes', 'support', 'channel']),
|
||||
pendingFriends: store.proxy.friends_pending || {},
|
||||
supportPrivateKey: Util.find(store.proxy, ['mailboxes', 'supportadmin', 'keys', 'curvePrivate']),
|
||||
accountName: store.proxy.login_name || '',
|
||||
teams: teams,
|
||||
plan: account.plan
|
||||
}
|
||||
|
|
|
@ -423,7 +423,7 @@ define([
|
|||
};
|
||||
var additionalPriv = {
|
||||
app: parsed.type,
|
||||
accountName: Utils.LocalStore.getAccountName(),
|
||||
loggedIn: Utils.LocalStore.isLoggedIn(),
|
||||
origin: window.location.origin,
|
||||
pathname: window.location.pathname,
|
||||
fileHost: ApiConfig.fileHost,
|
||||
|
|
|
@ -69,7 +69,7 @@ define([
|
|||
funcs.getAppConfig = function () { return AppConfig; };
|
||||
|
||||
funcs.isLoggedIn = function () {
|
||||
return ctx.metadataMgr.getPrivateData().accountName;
|
||||
return ctx.metadataMgr.getPrivateData().loggedIn;
|
||||
};
|
||||
|
||||
// MISC
|
||||
|
|
|
@ -84,7 +84,7 @@ define([
|
|||
metaObj.doc = {};
|
||||
var additionalPriv = {
|
||||
fileHost: ApiConfig.fileHost,
|
||||
accountName: Utils.LocalStore.getAccountName(),
|
||||
loggedIn: Utils.LocalStore.isLoggedIn(),
|
||||
origin: window.location.origin,
|
||||
pathname: window.location.pathname,
|
||||
feedbackAllowed: Utils.Feedback.state,
|
||||
|
|
|
@ -86,7 +86,7 @@ define([
|
|||
metaObj.doc = {};
|
||||
var additionalPriv = {
|
||||
fileHost: ApiConfig.fileHost,
|
||||
accountName: Utils.LocalStore.getAccountName(),
|
||||
loggedIn: Utils.LocalStore.isLoggedIn(),
|
||||
origin: window.location.origin,
|
||||
pathname: window.location.pathname,
|
||||
feedbackAllowed: Utils.Feedback.state,
|
||||
|
|
Loading…
Reference in New Issue