Loris
Loris copied to clipboard
[document_repository] New features
Brief summary of changes
- Changed view permission to only allow viewing of documents (Only browse tab accessible)
- Added an upload and edit permission (allows users to upload a document or to edit any documents in doc repo)
- Created a new permission: hidden files. Allows users that have the permission to hide files from users that do not have it.
- New tab: "Edit Categories". Allows to change the name of a category as well as its parent category.
- Created a new permission: categories. The edit categories and add categories do not appear unless you have this permission.
Testing instructions (if applicable)
- Check with another account (not admin) that the permissions listed above behave as expected (the tabs appear as expected).
- Upload a document when you have the hidden file permission and set the file to restricted. Check with an account that does not have the hidden file permission that this file does not appear in the doc tree. Check that it appears when you have the permission. Also check that when uploading a file or editing one, the restrict access option is not available if you do not have the hidden file permission
- With the categories permission, create a new permission. Check that the category has the right name under the right parent category. Using the edit categories tab, edit the name of the category and change the parent category. Check that the category was moved accordingly and has the right name.
- When editing a file, you should be able to change the category of the file.
Link(s) to related issue(s)
- Resolves #7099
@LeighMac please let me know if these features were the ones you were looking for.
@kongtiaowang I dont really know what is happening with the test suite do you think you could help me please?
@kongtiaowang could you help @pierre-p-s with the test suite?
@jstirling91 could you review this? Thanks!
@jstirling91 could you re-review please?
@CamilleBeau Can you verify is this is still needed?
@CamilleBeau Can you verify is this is still needed?
@laemtl Yes, most of these changes have not been made yet.
I'm not able to find any specific errors in the test suite - would anyone be able to help with this?
@CamilleBeau https://github.com/aces/Loris/blob/main/raisinbread/RB_files/RB_permissions.sql needs to update.
@CamilleBeau Please update the code in document_repository/test/document_repositoryTest.php, in line 116,119, 133 and 140. change "category" to "addCategory" in url and cssSelector section.
@CamilleBeau or someone else on CCNA to rebase/fix conflicts