mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-15941 block view permissions override regression fixed
This commit is contained in:
parent
dc633c9900
commit
44df8fa94c
2 changed files with 3 additions and 3 deletions
|
@ -796,7 +796,7 @@ class block_base {
|
|||
}
|
||||
|
||||
function get_extra_capabilities() {
|
||||
return array();
|
||||
return array('moodle/block:view');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3365,8 +3365,8 @@ function fetch_context_capabilities($context) {
|
|||
|
||||
$SQL = "SELECT *
|
||||
FROM {capabilities}
|
||||
WHERE contextlevel = ".CONTEXT_MODULE."
|
||||
AND component = :component
|
||||
WHERE (contextlevel = ".CONTEXT_MODULE."
|
||||
AND component = :component)
|
||||
$extra";
|
||||
$params['component'] = "mod/$module->name";
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue