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

Command icon 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

beloglazov91 created an issue. See original summary.

beloglazov91’s picture

(deleted)

beloglazov91’s picture

Detected: scale question in Quiz breaks offline mode.

beloglazov91’s picture

So, 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.

beloglazov91’s picture

Now 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.

beloglazov91’s picture

Assigned: beloglazov91 » Unassigned
Status: Active » Needs review

spleshka’s picture

Status: Needs review » Fixed

Thank you Alexey, happy to get this in!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.