Fix custom parameters for guest users. close #9737

This commit is contained in:
Joao Siebel 2020-06-02 17:44:17 -03:00
parent 0475d4c3b3
commit 9690597803

View File

@ -180,7 +180,7 @@ class JoinHandler extends Component {
logUserInfo(); logUserInfo();
Tracker.autorun(async (cd) => { Tracker.autorun(async (cd) => {
const user = Users.findOne({ userId: Auth.userID, authed: true }, { fields: { _id: 1 } }); const user = Users.findOne({ userId: Auth.userID, approved: true }, { fields: { _id: 1 } });
if (user) { if (user) {
await setCustomData(response); await setCustomData(response);