I'm running vb 3.0.1 (with security patches...and yes I'll be upgrading soon) and have been trying to get moderated calendars working. The problem I am having is as follows:
1) User 1 (Admin) creates a new calendar and sets User 2 (just a registered user) as being the moderator for this calendar. Additionally, when User 1 created the calendar he set up email notification for new events to be sent to the email address for User 2 (so he can be notified when a new event is posted...and so he can go moderate it).
2) User 3 (just a registered user) creates a new event on the calendar in question and since it requires moderation it doesn't show up on the calendar (what I expect)
3) Since User 2 received an email indicating that there was a new event posted he goes to the forums/modcp interface, logs in, and clicks on Moderate Events. The message he receives is "No Events awaiting moderation" when in fact there should be one.
When examining the events database there is one event whose visible flag is set to false (what I would expect). In looking at the code (includes/functions_calendar.php) for the can_moderate_calendar function it appears that even though the user has permissions to moderate that the AND operation with the _BITFIELD is causing the function to return false.
Can you assist?
Thanks for your help!
Best regards,
Mark
BTW - I have a test migration environment (told you I'll be upgrading soon) running 3.0.6 and am seeing the same problem with it.
Can you assist?
1) User 1 (Admin) creates a new calendar and sets User 2 (just a registered user) as being the moderator for this calendar. Additionally, when User 1 created the calendar he set up email notification for new events to be sent to the email address for User 2 (so he can be notified when a new event is posted...and so he can go moderate it).
2) User 3 (just a registered user) creates a new event on the calendar in question and since it requires moderation it doesn't show up on the calendar (what I expect)
3) Since User 2 received an email indicating that there was a new event posted he goes to the forums/modcp interface, logs in, and clicks on Moderate Events. The message he receives is "No Events awaiting moderation" when in fact there should be one.
When examining the events database there is one event whose visible flag is set to false (what I would expect). In looking at the code (includes/functions_calendar.php) for the can_moderate_calendar function it appears that even though the user has permissions to moderate that the AND operation with the _BITFIELD is causing the function to return false.
Can you assist?
Thanks for your help!
Best regards,
Mark
BTW - I have a test migration environment (told you I'll be upgrading soon) running 3.0.6 and am seeing the same problem with it.
Can you assist?
Comment