Permalink
Browse files

MDL-33514 - rss: also exclude suspended users feeds

Thanks Petr!
  • Loading branch information...
danpoltawski committed Jun 11, 2012
1 parent b30dc39 commit 85aec6a4a2aa36e0031aa19fcbe0275172167520
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rsslib.php
View
@@ -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);
}

0 comments on commit 85aec6a

Please sign in to comment.