Bug tracker
Editing with test user permissions causes vanishing attachments (fix completed in vcs)
Testcase:
-------------
Note:
User A is admin
User M is normal member, without any special permissions.
Forum F has permission to disallow normal members to download attachments.
Post P is the affected post, posted with attachments.
Steps:
1. A posts a topic (with post P) with an attachment in Forum F.
2. A clicks on Test user's permission with M's permissions.
3. A goes to topic in Forum F.
4. A edits the post and saves it.
5. The attachment is now missing from the post, even after you revert to admin permissions/reedit it.
However, the attachment:
1. Is NOT listed under orphaned attachments
2. Still appears linked to the topic when checked via UCP's Manage Attachments.
3. viewforums.php still displays the attachment icon for the topic.
-------------
Manually fixing the problem:
I manually fixed it by using phpmyadmin:
1. Go to the phpbb_posts table
2. Searched for the post ID
3. Edited post_attachment value to 1 from 0.
4. Save