Skip to content

Commit e3784d2

Browse files
committed
Learnpath: #fix learnpath audio modification not accessible when in a session on the lp user subscripcion page - refs BT#22959
1 parent 172e9fa commit e3784d2

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

main/lp/learnpath.class.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6982,19 +6982,21 @@ public function build_action_menu(
69826982
])
69836983
);
69846984

6985-
$actionsLeft .= Display::url(
6986-
Display::return_icon(
6987-
'upload_audio.png',
6988-
get_lang('UpdateAllAudioFragments'),
6989-
'',
6990-
ICON_SIZE_MEDIUM
6991-
),
6992-
'lp_controller.php?'.api_get_cidreq().'&'.http_build_query([
6993-
'action' => 'admin_view',
6994-
'lp_id' => $lpId,
6995-
'updateaudio' => 'true',
6996-
])
6997-
);
6985+
if (!$noEdition) {
6986+
$actionsLeft .= Display::url(
6987+
Display::return_icon(
6988+
'upload_audio.png',
6989+
get_lang('UpdateAllAudioFragments'),
6990+
'',
6991+
ICON_SIZE_MEDIUM
6992+
),
6993+
'lp_controller.php?'.api_get_cidreq().'&'.http_build_query([
6994+
'action' => 'admin_view',
6995+
'lp_id' => $lpId,
6996+
'updateaudio' => 'true',
6997+
])
6998+
);
6999+
}
69987000

69997001
$subscriptionSettings = self::getSubscriptionSettings();
70007002
$request = api_request_uri();

0 commit comments

Comments
 (0)