Skip to content

Commit 68ce8d7

Browse files
committed
Replace api_protect_course_script with api_protect_admin_script - refs #7370
1 parent 5fe3e21 commit 68ce8d7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugin/buycourses/src/configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$tpl = new Template($templateName);
2222

2323
$teacher = api_is_platform_admin();
24-
api_protect_course_script(true);
24+
api_protect_admin_script(true);
2525

2626
if ($teacher) {
2727
// sync course table with the plugin

plugin/buycourses/src/paymentsetup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
$tpl = new Template($templateName);
2020
$teacher = api_is_platform_admin();
21-
api_protect_course_script(true);
21+
api_protect_admin_script(true);
2222

2323
if ($teacher) {
2424
// Sync course table with the plugin

plugin/buycourses/src/pending_orders.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$tpl = new Template($tableName);
2020

2121
$teacher = api_is_platform_admin();
22-
api_protect_course_script(true);
22+
api_protect_admin_script(true);
2323

2424
if ($teacher) {
2525
$pendingList = pendingList($_SESSION['bc_codetext']);

0 commit comments

Comments
 (0)