I've reproduced it on Simplytestme on the clean installation of Opigno 1.20 and 1.19.

Steps to reproduce:
Create user Test with role Student manager

  1. Create course Course1
  2. Add user Test as a teacher for Course1
  3. Log in as a user Test (next operation we make with user Test account)
  4. Create Lesson1 type mixed in Course1
  5. Create Side1 in Lesson1 with text "Slide 1"
  6. Create Slide2 in Lesson2 with text "Slide 2"
  7. Change the order of slides moving "Slide2" higher then "Slide1" on the "questions" page.
  8. Press "Submit" button on the "questions" page.

And you get "One of the supplied questions was invalid. It has been removed from the quiz" error. Order of slides will not change.
Now I just give admin writes to teachers temporarily. But it is very scary. IMHO critical issue.

CommentFileSizeAuthor
#3 opigno_lms-fix_permission-2593593-3-7.patch706 bytestibezh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vabue created an issue. See original summary.

vabue’s picture

With coach+teacher roles - the same error.
With coach+teacher+manager roles - the same error.
With coach+manager roles - the same error.

tibezh’s picture

This is a problem with 'view quiz question outside of a quiz' permission for 'student manager' role.
Here is a patch for add the permission to the role into feature file.

tibezh’s picture

Status: Active » Needs review
vabue’s picture

Status: Needs review » Reviewed & tested by the community

Just checked this patch - works fine for me.

Thank you, tibezh!

Jamesap’s picture

Title: User with Teacher role can't change questions order » [1.22] User with Teacher role can't change questions order
Status: Reviewed & tested by the community » Patch (to be ported)
Jamesap’s picture

Status: Patch (to be ported) » Closed (fixed)

Fixed Opigno 1.22