Skip to content

Commit

Permalink
how hidden Kanban instances as dimmed for users with view capability.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdagner committed Oct 30, 2024
1 parent 5164361 commit 6e7d36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

foreach ($kanbans as $kanban) {
$context = context_module::instance($kanban->coursemodule, IGNORE_MISSING);
if (!$context || !$kanban->visible || !has_capability('mod/kanban:view', $context)) {
if (!$context || !has_capability('mod/kanban:view', $context)) {
continue;
}

Expand Down

0 comments on commit 6e7d36a

Please sign in to comment.