help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
[HOWTO] Allow one usergroup to edit frontend attendees list
Re: [HOWTO] Allow one usergroup to edit frontend attendees list
3 years 8 months ago
Va bene per l'italiano grazie!
sono giuste le prime due cose che scrivi.
Il bottone per iscriversi si può lasciare, tanto gli eventi sono tutti impostati come in figura 1, quindi nessuno può auto iscriversi (basta non usare gli inviti).
Fig. 1
Quello che mi serve lo vedi nella figura 2: tutti e solo i membri del gruppo JEM Editors devono poter iscrivere i partecipanti dal front-end.
Fig. 2
Grazie, ciao!
sono giuste le prime due cose che scrivi.
Il bottone per iscriversi si può lasciare, tanto gli eventi sono tutti impostati come in figura 1, quindi nessuno può auto iscriversi (basta non usare gli inviti).
Fig. 1
Quello che mi serve lo vedi nella figura 2: tutti e solo i membri del gruppo JEM Editors devono poter iscrivere i partecipanti dal front-end.
Fig. 2
Grazie, ciao!
Please Log in or Create an account to join the conversation.
Re: [HOWTO] Allow one usergroup to edit frontend attendees list
3 years 8 months ago - 3 years 8 months ago
in the event details view the attendees part and the registration part appear, when there is the possibility to register for an event (as a joomla user in the site).
For the author, the admins and the groupmembers (who are allowed to edit the event) is an open link to the attendees manager (beneath the number of booked places)
When the attending is only for invited users, this link to the attendees manager is open for admins and the groupmembers, only when they are invited (and/or gave a feedback (attending/not-attending) . For the event author the link is open even if he is not (yet) invited.
For the author, the admins and the groupmembers (who are allowed to edit the event) is an open link to the attendees manager (beneath the number of booked places)
When the attending is only for invited users, this link to the attendees manager is open for admins and the groupmembers, only when they are invited (and/or gave a feedback (attending/not-attending) . For the event author the link is open even if he is not (yet) invited.
Last edit: 3 years 8 months ago by jojo12.
Please Log in or Create an account to join the conversation.
Re: [HOWTO] Allow one usergroup to edit frontend attendees list
3 years 8 months ago - 3 years 8 months agoCode:
// Check if user can edit attendees
$isAuthor = $userId && ($userId == $item->created_by);
//$permissions->canEditAttendees = $isAuthor;
//new logic: user can edit attendees if he can edit events, suggested by jojo12
//in addition you must hide in models/attendees.php line 275 $where[] = ' a.created_by = '.$this->_db->Quote($user->id);
$permissions->canEditAttendees = $user->can('edit', 'event', $item->id, $item->created_by);
$edit_att->canEditAttendees = $user->can('edit', 'event', $item->id, $item->created_by); // M59S (added)
and line 230/231: replace
Code:
//$this->showAttendees = (($g_reg == 1) || (($g_reg == 2) && ($e_reg & 1))) && ((!(($e_reg & 2) && ($g_inv > 0))) || (is_object($registration) || $isAuthor));
Code:
$this->showAttendees = (($g_reg == 1) || (($g_reg == 2) && ($e_reg & 1))) && ((!(($e_reg & 2) && ($g_inv > 0))) || (is_object($registration) || $isAuthor) || $edit_att);
Thanks to MSpina
Last edit: 3 years 8 months ago by jojo12.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Time to create page: 0.450 seconds