Skip to content
Snippets Groups Projects
Commit 6cba441b authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Show life cycle link only if user has capability

parent 4b9c284e
Branches
Tags
No related merge requests found
...@@ -63,6 +63,10 @@ function tool_lifecycle_extend_navigation_course($navigation, $course, $context) ...@@ -63,6 +63,10 @@ function tool_lifecycle_extend_navigation_course($navigation, $course, $context)
return null; return null;
} }
if (!has_capability('tool/lifecycle:managecourses', $context)) {
return null;
}
$url = null; $url = null;
$settingnode = null; $settingnode = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment