Guest Access to Calendar

Guest Access to Calendar

von Emma Richardson -
Anzahl Antworten: 1
Nutzerbild von Documentation writers Nutzerbild von Particularly helpful Moodlers Nutzerbild von 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.

 

Als Antwort auf Emma Richardson

Re: Guest Access to Calendar

von 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);
}