forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-74901 core_navigation: support callbacks in frontpage secondary nav
Fixes the site home secondary nav, so that nodes added by plugins implementing the PLUGIN_extend_navigation_frontpage callback can be displayed for users who don't have the 'course:update' capability. This change comprises: - Removed course:update capability checks from site home (index.php) and from the secondary nav view. This isn't needed since the nav is capability aware. - Fixed the initialisation of the secondary nav for the frontpage course, removing erroneous duplicate 'home' nodes. The nav is now only shown if there are nodes to display.
- Loading branch information
Showing
2 changed files
with
23 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters