[Git][noosfero/noosfero][master] person: membership hotspot works with empty scopes too

Rodrigo Souto gitlab at mg.gitlab.com
Mon Apr 30 17:30:18 BRT 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
9cdefda1 by Rodrigo Souto at 2018-04-30T20:28:35Z
person: membership hotspot works with empty scopes too

- - - - -


1 changed file:

- app/models/person.rb


Changes:

=====================================
app/models/person.rb
=====================================
--- a/app/models/person.rb
+++ b/app/models/person.rb
@@ -93,7 +93,7 @@ class Person < Profile
   def memberships
     scopes = []
     plugins_scopes = plugins.dispatch_scopes(:person_memberships, self)
-    scopes = plugins_scopes unless plugins_scopes.first.blank?
+    scopes = plugins_scopes
     scopes << Profile.memberships_of(self)
     return scopes.first if scopes.size == 1
     ScopeTool.union *scopes



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/9cdefda1b11ed07461159044ed57e2d469299486

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/9cdefda1b11ed07461159044ed57e2d469299486
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/20180430/c7cc262d/attachment.html>


More information about the Noosfero-dev mailing list