By Altitudes on Wednesday, 10 February 2016
Posted in Groups
Replies 3
Likes 0
Views 1K
Votes 0
Hello

I am having issues with visibility of group stream items for users not belonging to the group. Note that all my groups are open groups.

When I am logged in with a user (such as "adherent") who did not join any group, on his dashboard he can see many group stream items. I think he should not.

And when he is on a group page, he cannot see all of the group stream item (or even he can see none, e.g. on group "Altitudes Paris"). Unless I am mistaking, he should see all the stream items since the groups are open.

You can check this with the site access I have gave you. Use account "adherent" rather than your super user account. You can change the password.

Thank you

.Fixed in ES 1.4.8
Hey there,

If the groups are open, all the stream items should be visible to the user when they view the group. However, these group stream items should not appear to the user unless they are part of the group.

Can you provide me with the login credentials for the user "adherent"? I don't seem to see any login credentials for this user in the site details.
·
Wednesday, 10 February 2016 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark

I have just set the same password for user "adherent" as for the super user account provided in the site details.
·
Wednesday, 10 February 2016 16:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitude,

When I am logged in with a user (such as "adherent") who did not join any group, on his dashboard he can see many group stream items. I think he should not.


Regarding the above, the reason you are able to view other groups's stream was because the default stream filter was set to 'everyone' thus you are able to view everyone streams items as long these stream belong to open groups or open events

And when he is on a group page, he cannot see all of the group stream item (or even he can see none, e.g. on group "Altitudes Paris"). Unless I am mistaking, he should see all the stream items since the groups are open.


Regarding the above, there is an issue with the group's event thus the stream is not displayed correctly when viewing the group. I've added a patch at your dev site and now the stream items for this group is now visible to use. Below is the file i've modified:

JOOMLA/administrator/components/com_easysocial/includes/event/event.php

and modified below block of code at line 1566:


if (!FD::user()->isSiteAdmin() && !$this->getGroup()->isMember()) {
return false;
}


to:


$group = $this->getGroup();
if (!FD::user()->isSiteAdmin() && !$group->isOpen() && !$group->isMember()) {
return false;
}


The same fix will be added into next release of EasySocial

Hope this help and have a nice day!
Sam
·
Friday, 12 February 2016 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post