Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Story # 26 - Delete Article #12

Closed
5 tasks done
amylour opened this issue Jun 2, 2023 · 0 comments
Closed
5 tasks done

User Story # 26 - Delete Article #12

amylour opened this issue Jun 2, 2023 · 0 comments
Assignees
Labels
Epic: Articles Articles feature issue Must Have User Story User Story issue

Comments

@amylour
Copy link
Owner

amylour commented Jun 2, 2023

As a user, I can click on the delete button on my own article page so that I can delete the article.

Acceptance Criteria

  1. User must be authorised to view 'Delete' button only on their own articles
  2. User is asked to confirm deletion to prevent error
  3. Unauthorised user brought to 403 error page with redirect to 'Home' page

Tasks

  • Create 403 error page
  • Create confirm article deletion page
  • Use LoginRequiredMixin/UserPassesTestMixin to secure auth
  • Create ArticleDelete view
  • Connect urls
@amylour amylour self-assigned this Jun 2, 2023
@amylour amylour added Epic: Articles Articles feature issue Must Have User Story User Story issue labels Jun 2, 2023
@amylour amylour closed this as completed Jun 2, 2023
@amylour amylour changed the title User Story # 26 Delete Article User Story # 26 - Delete Article Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic: Articles Articles feature issue Must Have User Story User Story issue
Projects
Status: Done
Development

No branches or pull requests

1 participant