0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

🐛 Hid the analtyics page for editors

fixes https://github.com/TryGhost/Team/issues/2302

The analytics page should not be visible for Editors (and doesn't work currently anyway). This commit removes the button that goes to the analytics page for editors and authors.
This commit is contained in:
Simon Backx 2022-12-06 11:10:58 +01:00
parent 62681037f0
commit 58ba154ed7

View file

@ -234,6 +234,7 @@ export default Model.extend(Comparable, ValidationEngine, {
hasAnalyticsPage: computed('isPost', 'showEmailOpenAnalytics', 'showEmailClickAnalytics', 'showAttributionAnalytics', function () {
return this.isPost
&& this.session.user.isAdmin
&& (
this.showEmailOpenAnalytics
|| this.showEmailClickAnalytics