Skip to content

Commit b5f527e

Browse files
authored
Merge pull request #204 from h5p/fix/AU-6850-handle-content-hub-deleted-on-unpublish-content
fix/AU-6850 reset hub data if no uuid or sercret when unpublishing
2 parents fb5100a + 291a4da commit b5f527e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

h5p.classes.php

+7
Original file line numberDiff line numberDiff line change
@@ -3920,6 +3920,13 @@ public function hubUnpublishContent($hubId) {
39203920

39213921
return true;
39223922
}
3923+
3924+
if ($response['status'] === 403) {
3925+
// Unauthenticated, cannot find hub secret and site uuid combination
3926+
$this->h5pF->resetHubOrganizationData();
3927+
return false;
3928+
}
3929+
39233930
$msg = $this->h5pF->t('Content unpublish failed');
39243931
$this->h5pF->setErrorMessage($msg);
39253932

0 commit comments

Comments
 (0)