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:
parent
490bfc2934
commit
4d12bea397
|
@ -341,7 +341,7 @@ class User < Principal
|
|||
end
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue