Closed (fixed)
Project:
Web File Manager
Version:
6.x-2.9-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Jul 2008 at 12:41 UTC
Updated:
29 Oct 2008 at 18:22 UTC
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.