[Git][noosfero/noosfero][master] 2 commits: Fix to always show members of a community in the menu block

Leandro Nunes gitlab at mg.gitlab.com
Thu May 4 10:02:05 BRT 2017


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
03dc9f0d by Josafá Souza Jr at 2017-05-04T09:15:56-03:00
Fix to always show members of a community in the menu block

- - - - -
cd723e73 by Leandro Nunes at 2017-05-04T13:01:50+00:00
Merge branch 'show-members-on-menu-block' into 'master'

Fix to always show members of a community in the menu block

See merge request !1191
- - - - -


1 changed file:

- app/models/menu_block.rb


Changes:

=====================================
app/models/menu_block.rb
=====================================
--- a/app/models/menu_block.rb
+++ b/app/models/menu_block.rb
@@ -78,7 +78,7 @@ class MenuBlock < Block
   end
 
   def display_members?(user)
-    owner.community? && user && user.has_permission?(:manage_memberships, owner)
+    owner.community?
   end
 
   def display_article?(user)



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/71d253ba3017c84e3c5c86568c4ecd97616c529a...cd723e733ddca9fa5a3c8e73748fa9789bac293c

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/71d253ba3017c84e3c5c86568c4ecd97616c529a...cd723e733ddca9fa5a3c8e73748fa9789bac293c
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/20170504/2fa268e3/attachment.html>


More information about the Noosfero-dev mailing list