By Marc on Tuesday, 05 March 2019
Posted in General Issues
Replies 1
Likes 0
Views 416
Votes 0
When a site admin views the list of attendees going to an event, all of the attendees are listed as "Moderators", irrespective of whether they are siteadmins/moderators or not.

When viewed by a normal member, the attendees are listed as "going"

The error seems to be on on line 41 of media/com_easysocial/apps/event/guests/themes/default/events.


<?php if (!$event->isAdmin($guest->uid) && $this->my->isSiteAdmin()) { ?>
<span class="o-label o-label--info-o label-moderator"><?php echo JText::_('APP_EVENT_GUESTS_MODERATOR'); ?>
</span>
<?php } ?>


$this->my->isSiteAdmin looks up the status of the logged in user, not the booked user.
Since the logged in user is siteAdmin, the action is done i.e the word "moderator" is added.

The correct action is that the word moderator should only be added if the BOOKED attendee was a siteadmin.
Thanks for reporting this Markus. This is a valid issue and we have fixed this internally. Temporarily, you may find the patched file below.
·
Tuesday, 05 March 2019 23:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post