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:
parent
62681037f0
commit
58ba154ed7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue