Skip to content

Commit 36dd77a

Browse files
committed
Course: restrict access to course's about page only if user is connected if course_catalog_published is false -refs BT#21299
1 parent d0cea35 commit 36dd77a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/course_info/about.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
require_once __DIR__.'/../inc/global.inc.php';
2020

21+
if (api_get_setting('course_catalog_published') != 'true' && api_is_anonymous()) {
22+
api_not_allowed(true);
23+
}
24+
2125
$courseId = isset($_GET['course_id']) ? (int) $_GET['course_id'] : 0;
2226

2327
if (empty($courseId)) {

0 commit comments

Comments
 (0)