[Git][noosfero/noosfero][master] api-helper: remove comment breaking the tests
Rodrigo Souto
gitlab at mg.gitlab.com
Fri Aug 11 16:30:38 BRT 2017
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
409784bc by Rodrigo Souto at 2017-08-11T16:30:06-03:00
api-helper: remove comment breaking the tests
- - - - -
1 changed file:
- app/api/helpers.rb
Changes:
=====================================
app/api/helpers.rb
=====================================
--- a/app/api/helpers.rb
+++ b/app/api/helpers.rb
@@ -30,7 +30,7 @@ module Api
private_token = (params[PRIVATE_TOKEN_PARAM] || headers['Private-Token']).to_s
@current_user ||= User.find_by private_token: private_token
@current_user ||= plugins.dispatch("api_custom_login", request).first
-# @current_user = session.user if @current_user.blank? && session.present?
+ @current_user = session.user if @current_user.blank? && session.present?
@current_user
end
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/409784bc94c0961369bd1374ccbaa66ca59c5b9f
---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/409784bc94c0961369bd1374ccbaa66ca59c5b9f
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170811/8c4a2cb9/attachment.html>
More information about the Noosfero-dev
mailing list