Allow users to **edit** and **delete** their own posts. Moderators should have the ability to delete **any post** if it violates community guidelines. --- ### β Tasks * [ ] **UI/UX** * [ ] Add `Edit` button on post detail page (visible only to authors). * [ ] Add `Delete` button on post detail page (visible to authors & moderators). * [ ] Create edit form (reuse create form) with existing post data pre-filled. * [ ] Show confirmation modal before deleting. * [ ] Provide feedback (success/error toast). * [ ] **Backend / Fullstack Logic** * [ ] Implement update functionality for posts (only authors). * [ ] Implement delete functionality (authors for own posts, moderators for all posts). * [ ] Ensure ownership & role-based authorization checks. * [ ] **Testing & QA** * [ ] Add unit tests for update & delete operations. * [ ] Add integration tests for authorization rules. * [ ] Test UI flow for edit & delete actions. --- ### π Acceptance Criteria * Authors can edit their own posts (title, description, attachments, authors). * Authors can delete their own posts. * Moderators can delete any post. * Confirmation modal shown before deletion. * Success/error feedback is displayed after action.
Activity