Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed yet another error in the same bit of SQL in get_users_by_capabi…

…lity() that made many things not work properly on the course front page.
  • Loading branch information...
commit f9144364f49a787c5098422894c40595be1fe4d9 1 parent e19c5c1
gustav_delius authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/accesslib.php
2  lib/accesslib.php
@@ -4159,7 +4159,7 @@ function get_users_by_capability($context, $capability, $fields='', $sort='',
4159 4159 if (!empty($CFG->defaultfrontpageroleid) && ($context->id == $frontpagectx->id || strstr($context->path, '/'.$frontpagectx->id.'/'))) {
4160 4160 $roles = get_roles_with_capability($capability, CAP_ALLOW, $context);
4161 4161 if (in_array($CFG->defaultfrontpageroleid, array_keys($roles))) {
4162   - return get_records_sql("SELECT $fields FROM {$CFG->prefix}user ORDER BY $sort", $limitfrom, $limitnum);
  4162 + return get_records_sql("SELECT $fields FROM {$CFG->prefix}user u ORDER BY $sort", $limitfrom, $limitnum);
4163 4163 }
4164 4164 }
4165 4165

0 comments on commit f914436

Please sign in to comment.
Something went wrong with that request. Please try again.