When the logged-in user can't get to the member listing for a group
(bug #845287, bug #504830), it seems like a good idea to also hide
the number of members.
Member counts are hidden in the group info block and copy a view page
by moving member & view counting into the group_get_groupinfo_data
function, and performing the permission check in one place for both
pages.
Member counts are hidden on My Groups and Find Groups inside the
group_prepare_usergroups_for_display function.
Change-Id: Ibe5675861040cedf67c2ddff7647117cd155722a
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/677 gitorious. org/mahara/ mahara/ commit/ 9f8cf99032bd2c9 c4f69553c05b129 e0548ea368
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 9f8cf99032bd2c9 c4f69553c05b129 e0548ea368
Author: Richard Mansfield <email address hidden>
Date: Mon Sep 12 11:10:09 2011 +1200
Hide member counts when user can't list members
When the logged-in user can't get to the member listing for a group
(bug #845287, bug #504830), it seems like a good idea to also hide
the number of members.
Member counts are hidden in the group info block and copy a view page groupinfo_ data
by moving member & view counting into the group_get_
function, and performing the permission check in one place for both
pages.
Member counts are hidden on My Groups and Find Groups inside the prepare_ usergroups_ for_display function.
group_
Change-Id: Ibe5675861040ce df67c2ddff76471 17cd155722a
Signed-off-by: Richard Mansfield <email address hidden>