sensei icon indicating copy to clipboard operation
sensei copied to clipboard

The Sensei > Module page does not work properly with different user roles

Open dadish opened this issue 3 years ago • 0 comments

Related to:

#3570

Steps to Reproduce

  1. Login as an admin
  2. Go to Sensei > Modules
  3. Create a module with name "Module 1"
  4. Login as and editor
  5. Go to Sensei > Modules
  6. Create a module with name "Module 1"
  7. Refresh the Sensei > Modules page (still being an editor). Observe that no modules show up.
  8. Login as an admin
  9. Go to Sensei > Modules. Observe that there are two "Module 1" with different slugs.

What I Expected

Not sure. Either for editor to see the module that they created. Or prevent the user to create a module with the existing module name.

What Happened Instead

Editor does not see the modules that they created. Also if editor assigns a module to a course during the creation of the module and navigates to the course editor the Module is not there. But if logged in as an admin, the course editor shows the module that editor created.

PHP / WordPress / Sensei LMS version

PHP 7.2.34 WordPress 6.0.1 Sensei LMS 4.6.0

Context / Source

This also causes some weird behavior in Learnomattic. See details for more context here p1659639282224369-slack-C07418EJ0

dadish avatar Aug 08 '22 08:08 dadish