1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Fix user accounts issue in zone navigation

This commit is contained in:
zinyando 2016-08-26 13:36:12 +02:00
parent 9483c44561
commit 3704981964

View file

@ -24,10 +24,10 @@ export default Ember.Component.extend({
didInitAttrs() {
if (this.get("session.authenticated")) {
// this.get("session.session.content.authenticated.user.accounts").forEach((account) => {
// // TODO: do not mutate account.active here
// account.active = account.orgId === this.get("appMeta.orgId");
// });
this.get("session.session.content.authenticated.user.accounts").forEach((account) => {
// TODO: do not mutate account.active here
account.active = account.orgId === this.get("appMeta.orgId");
});
}
},