Guest Access on Mobile App (Edly Theme)

Guest Access on Mobile App (Edly Theme)

by ari viljoen -
Number of replies: 1

We are running Moodle 4.4 on the web with Edly theme. We have manual enrolment, guest access and payment enrolment active. The guest access is so that guest users are able to see the course description provided by the Edly theme. As soon as the user accesses the Moodle mobile app, the edly theme does not hide the course content and the user is able to search and view the full courses with sections, videos and activities. Is there a way to fix this? 

We have the free version, so we are only able to disable one thing on the disable features list, but i do not see the option to disable guests from the moodle app, since you need to be logged in on the app. Maybe i am missing an easy step, but is there a way to hide course content from users that are not enrolled into the courses on the app when they view it?

on the images you can see, i search for a course i am not enrolled in, and then when i open it and click on the view course button at the bottom, i am able to access the course, play the videos.

Attachment 1.jpeg
Attachment 2.jpeg
Average of ratings: -
In reply to ari viljoen

Re: Guest Access on Mobile App (Edly Theme)

by Dani Palou -
Immàgine de Core developers Immàgine de Moodle HQ Immàgine de Peer reviewers Immàgine de Plugin developers

Hi,

I'm not sure if a course theme is the best way to handle this, it doesn't sound much "secure". Maybe some access restriction plugin would be better.

Unfortunately, the Moodle app doesn't support the themes by default, the theme developers usually need to adapt the them for the app. But in this case, the theme cannot know if a course is being accessed as guest or nor in the app so they won't be able to support this feature using CSS.

We'll open an issue to allow disabling enrolment methods in the app. In the meantime, the only workaround I can think of is to override the WebService core_course_get_contents in your site to avoid returning the course contents if the user is a guest.

EDIT: This is the issue: MOBILE-4583

Kind regards,

Dani