Skip to content

Commit

Permalink
MDL-33514 - rss: also exclude suspended users feeds
Browse files Browse the repository at this point in the history
Thanks Petr!
  • Loading branch information
danpoltawski committed Jun 11, 2012
1 parent b30dc39 commit 85aec6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rsslib.php
Expand Up @@ -406,7 +406,7 @@ function rss_get_userid_from_token($token) {
$sql = 'SELECT u.id FROM {user} u
JOIN {user_private_key} k ON u.id = k.userid
WHERE u.deleted = 0 AND u.confirmed = 1
AND k.value = ?';
AND u.suspended = 0 AND k.value = ?';
return $DB->get_field_sql($sql, array($token), IGNORE_MISSING);
}

Expand Down

0 comments on commit 85aec6a

Please sign in to comment.