Fixed membersTrackSources not hiding attribution analytics

This commit is contained in:
Simon Backx 2022-10-27 20:35:34 +02:00
parent 8bf8134500
commit 2e517b6744

View File

@ -220,10 +220,10 @@ export default Model.extend(Comparable, ValidationEngine, {
&& this.settings.emailTrackClicks;
}),
showAttributionAnalytics: computed('isPage', 'emailOnly', 'isPublished', 'membersUtils.isMembersInviteOnly', function () {
showAttributionAnalytics: computed('isPage', 'emailOnly', 'isPublished', 'membersUtils.isMembersInviteOnly', 'settings.membersTrackSources', function () {
return (this.isPage || !this.emailOnly)
&& this.isPublished
&& this.feature.get('memberAttribution')
&& this.settings.membersTrackSources
&& !this.membersUtils.isMembersInviteOnly
&& !this.session.user.isContributor;
}),