Make sure we look for a feeds token.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9801 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-06-10 13:29:47 +00:00
parent 490bfc2934
commit 4d12bea397
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ class User < Principal
end end
def self.find_by_rss_key(key) def self.find_by_rss_key(key)
token = Token.find_by_value(key.to_s) token = Token.find_by_action_and_value('feeds', key.to_s)
token && token.user.active? ? token.user : nil token && token.user.active? ? token.user : nil
end end