By Piret Liv Stern Dahl on Thursday, 01 February 2018
Posted in Groups
Replies 4
Likes 0
Views 506
Votes 0
Hello We have a requirement where the Invite only groups should only allow group admins /moderators to invite new members.. Right now i think al members can invite other users ?

Also i could not find any permission setting to restrict this
Hey Piret,

That is the current behavior of EasySocial. If you are a site admin, group admin or a member of a group, you may invite people to the group.

If you want to hack this, you could edit the file /administrator/components/com_easysocial/includes/group/group.php and locate the codes below at line 1679,

[gist]
if ($user->isSiteAdmin() || $this->isAdmin() || $this->isMember()) {
[/gist]

Replace it with,

[gist]
if ($user->isSiteAdmin() || $this->isAdmin()) {
[/gist]

This would only allow site and group admins to invite people. As for events, this can be configured in the settings shown here, http://take.ms/PYCUE
·
Thursday, 01 February 2018 19:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

In Invite Only group, How to remove the button (which is after leave group button) only for group member?

Please check attched image for reference.
·
Thursday, 08 February 2018 20:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Do you mean the ellipses (...)? You can edit the file /components/com_easysocial/themes/wireframe/helpers/cover/group.php and locate the codes below at line 178,

[gist]

<?php if ($group->canAccessActionMenu() || $group->isMember()) { ?>
<div class="btn-group" role="group">

<button data-type="button" class="dropdown-toggle_ btn btn-es-default-o btn-sm" data-bs-toggle="dropdown">
<i class="fa fa-ellipsis-h"></i>
</button>

<ul class="dropdown-menu dropdown-menu-right">
<?php if ($group->canInvite()) { ?>
<li>
<a href="javascript:void(0);" data-es-groups-invite data-id="<?php echo $group->id;?>"><?php echo JText::_('COM_EASYSOCIAL_GROUPS_INVITE_FRIENDS');?></a>
</li>

<?php if ($group->canAccessActionMenu()) { ?>
<li class="divider"></li>
<?php } ?>
<?php } ?>

<?php echo $this->html('group.report', $group); ?>

<?php echo $this->html('group.adminActions', $group); ?>
</ul>
</div>
<?php } ?>
[/gist]
·
Thursday, 08 February 2018 21:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post