help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
list of attendees
list of attendees
4 years 5 months ago
Just when I was sure that all problems were solved
I found that the list of attendees (when clicking to the number of attendees) is always empty - as long as you are not AUTHOR of the event!
The "number of attendees" works fine, it is only active when you have (joomla) Publisher rights. Otherwise it is not active. Perfect
I didn't realize this problem until now because my Test-user (without publisher rights) could not click the "number of attendees". Today I gave him the right - he could click - and got the COM_JEM_ATTENDEES_EMPTY_YET message. (There are 3 att. in the event and I am the author)
I made him (in Backend) the author --> he got the list.
(Our scenario: Normally I enter all events on our site. The list of attendees should be easy accessible to the Choire-director. He has Publisher rights for this and similar purposes)
I could not find any info in the help, what can I do?
I found that the list of attendees (when clicking to the number of attendees) is always empty - as long as you are not AUTHOR of the event!
The "number of attendees" works fine, it is only active when you have (joomla) Publisher rights. Otherwise it is not active. Perfect
I didn't realize this problem until now because my Test-user (without publisher rights) could not click the "number of attendees". Today I gave him the right - he could click - and got the COM_JEM_ATTENDEES_EMPTY_YET message. (There are 3 att. in the event and I am the author)
I made him (in Backend) the author --> he got the list.
(Our scenario: Normally I enter all events on our site. The list of attendees should be easy accessible to the Choire-director. He has Publisher rights for this and similar purposes)
I could not find any info in the help, what can I do?
Please Log in or Create an account to join the conversation.
Re: list of attendees
4 years 5 months ago
pff have to dive into it but it seems the filtering is done in this location:
File: /component/com_jem/models/attendees.php
Funtion: buildContentWhere
There the where statement looks for creator id
have to say that i haven't worked with the attendees-view in frontend much so have to check it out.
Maybe you can find a solution that suits you before that
Greetings,
Blue
File: /component/com_jem/models/attendees.php
Funtion: buildContentWhere
There the where statement looks for creator id
Code:
$where[] = ' a.created_by = '.$this->_db->Quote($user->id);
have to say that i haven't worked with the attendees-view in frontend much so have to check it out.
Maybe you can find a solution that suits you before that
Greetings,
Blue
Please Log in or Create an account to join the conversation.
Re: list of attendees
4 years 5 months ago
Can you once more give infos about your version and your settings. Attendees works better or best with the responsive= default part. But there are settings for this
Please Log in or Create an account to join the conversation.
Re: list of attendees
4 years 5 months ago
you can try in:
/httpdocs/components/com_jem/views/event/view.html.php about line 202
/httpdocs/components/com_jem/views/event/view.html.php about line 202
Code:
// Check if user can edit attendees
//$isAuthor = $userId && ($userId == $item->created_by);
//$permissions->canEditAttendees = $isAuthor;
//new logic: user can edit events, suggested by jojo12
$permissions->canEditAttendees = $user->can('edit', 'event', $item->id, $item->created_by);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Re: list of attendees
4 years 5 months ago
THX to both of you
The modification in /httpdocs/components/com_jem/views/event/view.html.php about line 202 did not show any effect. Also the the swich from "legacy" to "responsive" (canged the layout of course, but) didn't solve the problem.
But the File: /component/com_jem/models/attendees.php, statement
seems to work - I just commented it out --> now it does what I want.
Everybody can edit (and list) the attendees but due to the fact that the step before (click to the number of att. ) is only allowed to publishers - only publishers can edit.
Quite brute force I think and in this case I do not know what I have done
The modification in /httpdocs/components/com_jem/views/event/view.html.php about line 202 did not show any effect. Also the the swich from "legacy" to "responsive" (canged the layout of course, but) didn't solve the problem.
But the File: /component/com_jem/models/attendees.php, statement
Code:
$where[] = ' a.created_by = '.$this->_db->Quote($user->id);
Everybody can edit (and list) the attendees but due to the fact that the step before (click to the number of att. ) is only allowed to publishers - only publishers can edit.
Quite brute force I think and in this case I do not know what I have done
Please Log in or Create an account to join the conversation.
Time to create page: 0.519 seconds