In short terms DPAttachments inherits permissions from the item where the attachments belong to.
This going to become really technical now but it will give you an understanding how DPAttachments calculates permissions for the attachments they belong to. The following step wise explanation describes how DPAttachments tries to guess the permissions.
If the user has no edit permissions but edit own on the item then an additional check will be done if the actual user is the author of the item. If this is the case the edit permission will be granted.
If the actual logged in user is the author of the attachment he will always have edit state permissions to trash the item. This will not delete the item but it will be put into trashed state. The administrator can then delete the attachments in the backend permanently.
To fully understand what is going on have a look directly on the source of the canDo function on Github.
For every attachment the Joomla access level can be set as you are already familiar.
Comments (0)