Open travisbotello opened 5 years ago
I am experiencing issues with the Trash Manager too. I have various clients who has specific permissions assigned to them via ACLs and whilst some seem to be able to remove resources from the Trash Manager others do not. Permissions to access Trash Manager and purge resources and delete resources are checked but for some this doesn't appear to make any difference and resources remain in place. As @travisbotello states if you give a user Sudo status then suddenly they can empty the Trash Manager but obviously that isn't ideal.
The problem is (as I understand) in line 130 , file \core\model\modx\processors\resource\trash\getlist.class.php
$canEdit = $this->modx->hasPermission('edit');
I can't find permission EDIT, we have only SAVE
Thats why clients do not see context menu on manager/?a=resource/trash page
Excellent observation. When adding edit
permission manually to the admin template and activating this in the policy purging is working as expected without sudo flag. However I'd suggest that the policy should be renamed to something more specific like edit_trash
or can_purge
. We have some edit_*
permissions which are more specific.
Bug report
Summary
Trash manager purging of resources assigned to resource group only working for sudo user.
Step to reproduce
Observed behavior
Resources are not purged. Success message is shown:
Expected behavior
Resources should be purged.
Environment
MODX 2.7.0 advanced