mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'MDL-42858_m26' of git://github.com/rwijaya/moodle into MOODLE_26_STABLE
Conflicts: theme/bootstrapbase/style/moodle.css
This commit is contained in:
commit
9e2bc0490f
4 changed files with 1 additions and 18 deletions
|
@ -622,10 +622,6 @@ class helper {
|
|||
if (!$category->can_change_visibility()) {
|
||||
throw new \moodle_exception('permissiondenied', 'error', '', null, 'coursecat::can_change_visbility');
|
||||
}
|
||||
if ((int)$category->get_parent_coursecat()->visible === 0) {
|
||||
// You cannot mark a category visible if its parent is hidden.
|
||||
return false;
|
||||
}
|
||||
$category->show();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue