Permalink
Browse files

Merge branch 'wip-MDL-46338-m26' of git://github.com/marinaglancy/moo…

…dle into MOODLE_26_STABLE
  • Loading branch information...
danpoltawski committed Jul 29, 2014
2 parents 2d1ac61 + 198c28c commit 765ba4ce1e98c062c435bb1d5241f2b0cfb5f7e4
Showing with 5 additions and 2 deletions.
  1. +5 −2 enrol/self/lib.php
View
@@ -48,8 +48,11 @@ public function get_info_icons(array $instances) {
$key = false;
$nokey = false;
foreach ($instances as $instance) {
if (!$instance->customint6) {
// New enrols not allowed.
if ($this->can_self_enrol($instance, false) !== true) {
// User can not enrol himself.
// Note that we do not check here if user is already enrolled for performance reasons -
// such check would execute extra queries for each course in the list of courses and
// would hide self-enrolment icons from guests.
continue;
}
if ($instance->password or $instance->customint1) {

0 comments on commit 765ba4c

Please sign in to comment.