Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

list of attendees 7 months 1 week ago #27405

  • sepp25
  • sepp25's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 2
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?

Please Log in or Create an account to join the conversation.

list of attendees 7 months 1 week ago #27406

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
$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
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

list of attendees 7 months 1 week ago #27407

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 3334
  • Karma: 45
  • Thank you received: 363
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
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5

Please Log in or Create an account to join the conversation.

list of attendees 7 months 1 week ago #27408

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 3334
  • Karma: 45
  • Thank you received: 363
you can try in:
/httpdocs/components/com_jem/views/event/view.html.php about line 202
// 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);
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5

Please Log in or Create an account to join the conversation.

list of attendees 7 months 1 week ago #27409

  • sepp25
  • sepp25's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 2
JEM 2.3.0 legacy table style and Joomla 3.9.20

Please Log in or Create an account to join the conversation.

list of attendees 7 months 1 week ago #27410

  • sepp25
  • sepp25's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 2
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
$where[] = ' a.created_by = '.$this->_db->Quote($user->id);
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 :-)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.864 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......