Guest Access to Calendar

Guest Access to Calendar

by Emma Richardson -
Number of replies: 1
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Moodle 3.3.2.  Themes - Adaptable and Fordson exhibiting same behavior.

Problem:  Guest cannot access calendar unless they first click on a course link first.

Settings:  Guest Auto Login set to on and working for course access.  Show Guest Button set to Show as I have had problems when turning that off in the past.  Default role on Front Page - I have tried both Authenticated User and Guest Role.  Neither one works.

Steps:  Go to Site Home Page.  Click on the Calendar link from Upcoming Events block.  Redirected to Login Screen.

            Go to Site Home Page.  Click on a link to an open course.  Then click on Calendar link.  Calendar shows.

Just not sure where to start looking to try and fix this.  Would appreciate any help.

 

Average of ratings: -
In reply to Emma Richardson

Re: Guest Access to Calendar

by Dean Montgomery -


Edit calendar/view.php find and change:

require_login($course, false);

TO:

if ($course == 1){
 require_login($course, true);
} else {
 require_login($course, false);
}

Average of ratings: Useful (1)