-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locked attachments can still be deleted from the chatter of an object #381
Comments
could you review this PR #385 to see if the issue is solved or not? |
According to the defined rule https://github.com/OCA/dms/blob/16.0/dms/security/security.xml#L63 users will be able to delete files if they have locked them themselves (regardless of how they try to delete them). |
Closing this as no issue then. |
Sorry, my bad for not being clear enough. The problem is that:
User A is an administrator, user B is a normal DMS user. |
OK, reopening it. |
When deleting an attachment, an attempt should be made to delete the linked file, causing an error if it is locked. Do not show the Delete/Archive/Unarchive option on files if it is locked and you cannot unlock it. Fixes OCA#381
When deleting an attachment, an attempt should be made to delete the linked file, causing an error if it is locked. Do not show the Delete/Archive/Unarchive option on files if it is locked and you cannot unlock it. Fixes OCA#381
When deleting an attachment, an attempt should be made to delete the linked file, causing an error if it is locked. Do not show the Delete/Archive/Unarchive option on files if it is locked and you cannot unlock it. Fixes OCA#381
When deleting an attachment, an attempt should be made to delete the linked file, causing an error if it is locked. Do not show the Delete/Archive/Unarchive option on files if it is locked and you cannot unlock it. Fixes OCA#381
Module
DMS
Describe the bug
Locking an attachment of an object (example an attachment of an invoice) thru DMS still allows for the attachment to be deleted from the chatter of the invoice.
Expected behavior
Deleting / modifying the attachment from the invoice should be blocked as well.
Tested on Odoo 16.
The text was updated successfully, but these errors were encountered: