Permalink
Browse files

Merge branch 'MDL-38289-24' of git://github.com/FMCorz/moodle into MO…

…ODLE_24_STABLE
  • Loading branch information...
damyon committed May 9, 2013
2 parents 1d79b72 + ac9d18d commit 3f999f8120f24c2fea2e23578869634aee17c058
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/conditionlib.php
View
@@ -1279,7 +1279,7 @@ protected function get_cached_user_profile_field($userid, $fieldid) {
}
$iscurrentuser = $USER->id == $userid;
- if (isguestuser($userid)) {
+ if (isguestuser($userid) || ($iscurrentuser && !isloggedin())) {
// Must be logged in and can't be the guest. (this should never happen anyway)
return false;
}

0 comments on commit 3f999f8

Please sign in to comment.