Commit f3f93b117e393e576f6400c78ef7f710f4be7285
1 parent
eb8a1789
Exists in
stable-spb-1.4
and in
5 other branches
fix api setting current_user to nil
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
lib/noosfero/api/helpers.rb
... | ... | @@ -23,7 +23,6 @@ require_relative '../../find_by_contents' |
23 | 23 | def current_user |
24 | 24 | private_token = (params[PRIVATE_TOKEN_PARAM] || headers['Private-Token']).to_s |
25 | 25 | @current_user ||= User.find_by_private_token(private_token) |
26 | - @current_user = nil if !@current_user.nil? | |
27 | 26 | @current_user |
28 | 27 | end |
29 | 28 | ... | ... |