Skip to content

Commit e879e4f

Browse files
authored
fix: Info panel Cloud Code call is unauthenticated without using master key (#2641)
1 parent e06e577 commit e879e4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dashboard/Data/Browser/Browser.react.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,12 @@ class Browser extends DashboardView {
271271
const params = {
272272
objectId: objectId,
273273
};
274+
const options = {
275+
useMasterKey: true,
276+
}
274277
const appName = this.props.params.appId;
275278
const cloudCodeFunction = this.state.classwiseCloudFunctions[`${appId}${appName}`]?.[className][0].cloudCodeFunction;
276-
Parse.Cloud.run(cloudCodeFunction, params).then(
279+
Parse.Cloud.run(cloudCodeFunction, params, options).then(
277280
result => {
278281
if (result && result.panel && result.panel && result.panel.segments) {
279282
this.setState({ AggregationPanelData: result, isLoading: false });

0 commit comments

Comments
 (0)