mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
get_default_frontpage_role_access() should prolly not load overrides below course level
This commit is contained in:
parent
4e1fe7d109
commit
a6df7ee6fa
1 changed files with 1 additions and 0 deletions
|
@ -265,6 +265,7 @@ function get_default_frontpage_role_access($roleid, $accessdata=NULL) {
|
|||
ON rc.contextid=ctx.id
|
||||
WHERE rc.roleid = {$roleid}
|
||||
AND (ctx.id = ".SYSCONTEXTID." OR ctx.path LIKE '$base/%')
|
||||
AND ctx.contextlevel <= ".CONTEXT_COURSE."
|
||||
ORDER BY ctx.depth, ctx.path";
|
||||
|
||||
if ($rs = get_recordset_sql($sql)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue