sensei
sensei copied to clipboard
The Sensei > Module page does not work properly with different user roles
Related to:
#3570
Steps to Reproduce
- Login as an admin
- Go to Sensei > Modules
- Create a module with name "Module 1"
- Login as and editor
- Go to Sensei > Modules
- Create a module with name "Module 1"
- Refresh the Sensei > Modules page (still being an editor). Observe that no modules show up.
- Login as an admin
- 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