dpixl said:
Hi!
I'm also using "RS EVENT multiday" plugin on my site as a sidebar widget, which shows the posts in the Category "Events".
My problem is that the "Events" in the sidebar are visible to all users (of course when they click on one of them, they are not directed to the post, but to an error site, if they dont belong to a specific user group).
Regards,
Daniel
Daniel, there's nothing wrong with that English! Don't underestimate your progress.
The problem with the RS Event multiday plugin is its direct posts query, which does not allow for any filtering by other plugins. A quick workaround can be achieved by adding one line of code to rs-event-multiday.php:
after:
if(!empty($event_ids) && !empty($event_list))
{
/*** To store previous dates if we have $group_by_date turned on */
$previous_date = false;
/*** Loop through each event */
foreach($event_list as $event)
{
add: (after curly brace)
// kevinB addition to force observance of Role Scoper-imposed restrictions
if ( ! current_user_can( 'read_post', $event->id ) )
continue;