@@ -24,7 +24,7 @@ const payloadDashboardAnalytics =
2424 ( incomingConfig : DashboardAnalyticsConfig ) =>
2525 ( config : PayloadConfig ) : PayloadConfig => {
2626 const { admin, collections, globals } = config ;
27- const { provider, navigation, dashboard } = incomingConfig ;
27+ const { provider, navigation, dashboard, access } = incomingConfig ;
2828 const endpoints = config . endpoints ?? [ ] ;
2929 const apiProvider = getProvider ( provider ) ;
3030
@@ -71,12 +71,12 @@ const payloadDashboardAnalytics =
7171 } ,
7272 endpoints : [
7373 ...endpoints ,
74- getGlobalAggregate ( apiProvider ) ,
75- getGlobalChart ( apiProvider ) ,
76- getPageChart ( apiProvider ) ,
77- getPageAggregate ( apiProvider ) ,
78- getLive ( apiProvider ) ,
79- getReport ( apiProvider ) ,
74+ getGlobalAggregate ( apiProvider , access ) ,
75+ getGlobalChart ( apiProvider , access ) ,
76+ getPageChart ( apiProvider , access ) ,
77+ getPageAggregate ( apiProvider , access ) ,
78+ getLive ( apiProvider , access ) ,
79+ getReport ( apiProvider , access ) ,
8080 ] ,
8181 ...( collections && {
8282 collections : collections . map ( ( collection ) => {
0 commit comments