Skip to content

Commit

Permalink
MDL-53760 competency: Set block_lp as default dashboard block
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Apr 18, 2016
1 parent a8a10b1 commit b14311b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion blocks/lp/db/access.php
Expand Up @@ -40,7 +40,9 @@
'block/lp:myaddinstance' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array()
'archetypes' => array(
'user' => CAP_ALLOW
)
),

// Whether or not a user can see the block.
Expand Down
2 changes: 1 addition & 1 deletion lib/blocklib.php
Expand Up @@ -2269,6 +2269,6 @@ function blocks_add_default_system_blocks() {
}

$newblocks = array('private_files', 'online_users', 'badges', 'calendar_month', 'calendar_upcoming');
$newcontent = array('course_overview');
$newcontent = array('lp', 'course_overview');
$page->blocks->add_blocks(array(BLOCK_POS_RIGHT => $newblocks, 'content' => $newcontent), 'my-index', $subpagepattern);
}

0 comments on commit b14311b

Please sign in to comment.