mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Fixed membersTrackSources not hiding attribution analytics
This commit is contained in:
parent
8bf8134500
commit
2e517b6744
@ -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;
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user