Skip to content

Commit de47f0e

Browse files
committed
Course catalog: Fix option to hide the link to course catalog in the menu not to block access to the catalog -refs BT20652
1 parent a8b6e9f commit de47f0e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main/auth/courses.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
// Section for the tabs.
1313
$this_section = SECTION_CATALOG;
1414

15-
if ('true' !== api_get_setting('course_catalog_published') ||
16-
('true' === api_get_setting('course_catalog_published') && api_get_configuration_value('catalog_hide_public_link'))
17-
) {
15+
if ('true' !== api_get_setting('course_catalog_published')) {
1816
// Access rights: anonymous users can't do anything useful here.
1917
api_block_anonymous_users();
2018
}

0 commit comments

Comments
 (0)