That appears when right-clicking a static resource in the tree and clicking Delete.
If I edit a static resource and check the Settings / Deleted box, then save - the resource saves but the Deleted box returns to unchecked. No error appears in that case.
My editors group uses a custom ACL with permissions granted for remove, delete_document and delete_static_resource
Administrators can delete Static Resources OK and the editors group can delete Document Resources and Weblink Resources OK.
You could (temporarily) add some code to the processor I linked above (on line 55) to check and log the permissions individually. Maybe this gives some insight.
if (!$this->modx->hasPermission('delete_document')) {
$this->modx->log(modX::LOG_LEVEL_ERROR, "user " . $this->modx->user->get('username') . " doesn't have permission 'delete_document'");
}
if (!$this->modx->hasPermission('delete_static_resource')) {
$this->modx->log(modX::LOG_LEVEL_ERROR, "user " . $this->modx->user->get('username') . " doesn't have permission 'delete_static_resource'");
}
if (!$this->resource->checkPolicy('save')) {
$this->modx->log(modX::LOG_LEVEL_ERROR, "user " . $this->modx->user->get('username') . " doesn't have permission 'save'");
}
if (!$this->resource->checkPolicy('delete')) {
$this->modx->log(modX::LOG_LEVEL_ERROR, "user " . $this->modx->user->get('username') . " doesn't have permission 'delete'");
}
It seems, that in MODX 2.8.4, the code checks the permissions delete_document and delete_resource (instead of delete_document and delete_static_resource like in MODX 3).
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.