mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
get_default_frontpage_role_access() should prolly not load overrides below course level
This commit is contained in:
parent
4e1fe7d109
commit
a6df7ee6fa
@ -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…
x
Reference in New Issue
Block a user