Skip to content

Commit

Permalink
fix: Info panel Cloud Code call is unauthenticated without using mast…
Browse files Browse the repository at this point in the history
…er key (#2641)
  • Loading branch information
mtrezza authored Jan 29, 2025
1 parent e06e577 commit e879e4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,12 @@ class Browser extends DashboardView {
const params = {
objectId: objectId,
};
const options = {
useMasterKey: true,
}
const appName = this.props.params.appId;
const cloudCodeFunction = this.state.classwiseCloudFunctions[`${appId}${appName}`]?.[className][0].cloudCodeFunction;
Parse.Cloud.run(cloudCodeFunction, params).then(
Parse.Cloud.run(cloudCodeFunction, params, options).then(
result => {
if (result && result.panel && result.panel && result.panel.segments) {
this.setState({ AggregationPanelData: result, isLoading: false });
Expand Down

0 comments on commit e879e4f

Please sign in to comment.