get_default_frontpage_role_access() should prolly not load overrides below course level

This commit is contained in:
toyomoyo 2007-09-26 07:19:30 +00:00
parent 4e1fe7d109
commit a6df7ee6fa

View File

@ -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)) {