Hi,
if a user has no "access webfm" permissions and edits a node that has webfm attachments, nodeapi('update') will call webfm_dbupdate_attach with an empty file list because $_POST['attachlist'] is always empty without the "access webfm" permissions. This will remove all attachments for that node from the database.
This is easy to fix with a check for that permissions in nodeapi. If a use has no access rights, he can't have changed anything, so we don't need to update the database.
cu,
Frank
| Comment | File | Size | Author |
|---|---|---|---|
| webfm.keep_attachments_without_access.patch | 600 bytes | Frank Steiner |
Comments
Comment #1
robmilne commentedsee 6.x-2.10-rc1
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.