-
Bug
-
Resolution: Fixed
-
Major
-
3.9.20, 4.1.2, 4.3.5
-
HQ 2024 Sprint I2.1 Moppies
-
Small
Tested in Moodle 3.9 + 4.1 (Boost theme)
Error
Reproduction steps:
Login with an user with privileges to create courses and users by example a siteadmin/manager
- Login as admin/manager (an user that can create courses)
- Create a user named "Editing Teacher"
- Create a course named Contentbank
- Enrol 'Editing Teacher' with the rol Teacher (editing teacher)
- Create a course named: activity
- Enrol 'Editing Teacher' with the rol Teacher (editing teacher)
Login as Editing Teacher
- Go to course named: Contentbank
- Go to the contentbank
- Add a h5P contenttype, name it "File corrupt" (I used coursepresentation, with some random text)
- Go to the course: activity
- Add a H5P Core activity to the course named: File corrupt
- Click in package file on 'add'
- Click on content bank
- Navigate to the course where you have created the content
- choose 'create an alias/shortcut to the file' / Link to file
- Select the contentfile you created in step 3
- click on save and display
- You should be able to see the content
Login with an user with privileges to see all courses, deleted users and edit contentbank items by example a siteadmin/manager
- Go to the course: activity
- Click on H5P activity: file corrupt
- You should be able to see the content
- navigate to siteadmin > Users > Accounts > Browse list of users.
- Search the user named "Editing Teacher"
- Delete the account
- Go back to course: Activity
- You should be able to see the content
- Go to course named: Contentbank
- Go to the contentbank
- Click on content file named File corrupt
- Click edit
- Click save (you don't have to make changes)
- Go to the course: activity
- Click on H5P activity: file corrupt
- You now see the notification "This file can't be displayed because it has been uploaded by a user without the required capability to deploy h5p content'
- Edit the H5P activity
- Remove the content from the Package file
- Click in package file on 'add'
- Click on content bank
- Navigate to the course where you have created the content
- choose 'create an alias/shortcut to the file'
- Select this file
- You should be able to see the content
I think it is the repository but I don't know how this is different from other repository behavior and if this is expected behavior but it at least not behavior you really would like to have.
NOTE: 22-05-2023 we found out when we restore the user from the database, and place it back in the same premissions the issue is also being resolved.