Skip to content

Commit

Permalink
Course: restrict access to course's about page only if user is connec…
Browse files Browse the repository at this point in the history
…ted if course_catalog_published is false -refs BT#21299
  • Loading branch information
NicoDucou committed Dec 20, 2023
1 parent d0cea35 commit 36dd77a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/course_info/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

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

if (api_get_setting('course_catalog_published') != 'true' && api_is_anonymous()) {
api_not_allowed(true);
}

$courseId = isset($_GET['course_id']) ? (int) $_GET['course_id'] : 0;

if (empty($courseId)) {
Expand Down

0 comments on commit 36dd77a

Please sign in to comment.