Problem/Motivation
Currently, only users with developer role have the ability to download offline courses, all others see the following problem: "Could not download the course. Please contact site administrator".
Steps to reproduce
- Enable pwa module
- As non-admin user open any course
- Hit "Make course available offline"
Acceptance Criteria
- An anonymous user was able to download courses for offline use if PWA was enabled.
- A logged-in user was able to download courses for offline use if PWA was enabled.
Issue fork anu_lms-3315901
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
beloglazov91(deleted)
Comment #3
beloglazov91Detected: scale question in Quiz breaks offline mode.
Comment #4
beloglazov91So, the problem is: if "View published Question entities permission" is disabled for a user and Course has "score" question, then anu_lms app will be broken.
Comment #6
beloglazov91Now only users with the necessary permissions will view questions/quizzes. The problem with "offline" mode was there because when a user didn't have proper permission and anu lms app was broken.
Comment #7
beloglazov91Comment #9
spleshkaThank you Alexey, happy to get this in!