Skip to content

Commit

Permalink
navigation MDL-25397 Converted use of can_edit_category to check capa…
Browse files Browse the repository at this point in the history
…bilities instead.
  • Loading branch information
Sam Hemelryk committed Nov 26, 2010
1 parent c55e1d2 commit ed6af54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3498,7 +3498,7 @@ protected function load_category_settings() {
$categorynode = $this->add(print_context_name($this->context));
$categorynode->force_open();

if (can_edit_in_category()) {
if (has_any_capability(array('moodle/category:manage', 'moodle/course:create'), $this->context)) {
$url = new moodle_url('/course/category.php', array('id'=>$this->context->instanceid, 'sesskey'=>sesskey()));
if ($this->page->user_is_editing()) {
$url->param('categoryedit', '0');
Expand Down

0 comments on commit ed6af54

Please sign in to comment.