mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-53859_master' of https://github.com/StudiUM/moodle
This commit is contained in:
commit
23f1dbde67
@ -85,7 +85,8 @@ class user_competency_course_navigation implements renderable, templatable {
|
|||||||
$data->baseurl = $this->baseurl;
|
$data->baseurl = $this->baseurl;
|
||||||
$data->groupselector = '';
|
$data->groupselector = '';
|
||||||
|
|
||||||
if (has_capability('moodle/competency:coursecompetencymanage', $context)) {
|
if (has_any_capability(array('moodle/competency:usercompetencyview', 'moodle/competency:coursecompetencymanage'),
|
||||||
|
$context)) {
|
||||||
$course = $DB->get_record('course', array('id' => $this->courseid));
|
$course = $DB->get_record('course', array('id' => $this->courseid));
|
||||||
$currentgroup = groups_get_course_group($course, true);
|
$currentgroup = groups_get_course_group($course, true);
|
||||||
if ($currentgroup !== false) {
|
if ($currentgroup !== false) {
|
||||||
|
@ -78,7 +78,8 @@ class user_course_navigation implements renderable, templatable {
|
|||||||
$data->baseurl = $this->baseurl;
|
$data->baseurl = $this->baseurl;
|
||||||
$data->groupselector = '';
|
$data->groupselector = '';
|
||||||
|
|
||||||
if (has_capability('moodle/competency:coursecompetencymanage', $context)) {
|
if (has_any_capability(array('moodle/competency:usercompetencyview', 'moodle/competency:coursecompetencymanage'),
|
||||||
|
$context)) {
|
||||||
$course = $DB->get_record('course', array('id' => $this->courseid));
|
$course = $DB->get_record('course', array('id' => $this->courseid));
|
||||||
$currentgroup = groups_get_course_group($course, true);
|
$currentgroup = groups_get_course_group($course, true);
|
||||||
if ($currentgroup !== false) {
|
if ($currentgroup !== false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user