Skip to content

Commit

Permalink
fix(verifybundle): ignore name-check for dashboard_widget (#521)
Browse files Browse the repository at this point in the history
* fix(verifybundle): ignore name-check for dashboard_widget
  • Loading branch information
Birkbjo authored Jul 5, 2021
1 parent 496dfa3 commit f3a7479
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/security/verifyBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ const checkManifest = ({ manifest, appId, appName, version, canBeCoreApp }) => {
throw new Error('Manifest App Hub ID does not match app ID')
}
if (manifest.name !== appName) {
throw new Error('Manifest name does not match app name')
if (manifest.appType === 'DASHBOARD_WIDGET') {
// ignore dashboard_widgets, see HUB-123
} else {
throw new Error('Manifest name does not match app name')
}
}
if (manifest.version !== version) {
throw new Error('Manifest version does not match app version')
Expand Down

0 comments on commit f3a7479

Please sign in to comment.