mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-47728_master' of git://github.com/markn86/moodle
This commit is contained in:
commit
e94925ddd2
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ function tool_monitor_extend_navigation_course($navigation, $course, $context) {
|
|||
*/
|
||||
function tool_monitor_extend_navigation_user_settings($navigation, $user, $usercontext, $course, $coursecontext) {
|
||||
global $USER;
|
||||
if (($USER->id == $user->id)) {
|
||||
if (($USER->id == $user->id) && (has_capability('tool/monitor:subscribe', $coursecontext))) {
|
||||
$url = new moodle_url('/admin/tool/monitor/index.php', array('courseid' => $course->id));
|
||||
$subsnode = navigation_node::create(get_string('managesubscriptions', 'tool_monitor'), $url,
|
||||
navigation_node::TYPE_SETTING, null, null, new pix_icon('i/settings', ''));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue