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

Feature/389 login required #364

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

nmenezes0
Copy link
Contributor

@nmenezes0 nmenezes0 commented Aug 13, 2024

Context

Default to all views requiring login unless declared otherwise.

Changes proposed in this pull request

Default to all views requiring login using the new functionality in Django 5.1. Safer to default to login required, than have to remember to manually add @login_required to all views.

Guidance to review

To test - check you can't access most pages if not logged in. Check if you aren't a "staff" user that you can't login to the support area.

Other questions:

  • Are the views marked as login_not_required correct i.e. you should be able to access these pages without logging in?

Link to JIRA ticket

https://technologyprogramme.atlassian.net/browse/CON-403

Things to check

  • I have added any new ENV vars in all deployed environments and updated the .env.example and .env.test files in the repo

@nmenezes0 nmenezes0 requested a review from duncanjbrown August 13, 2024 15:06
@nmenezes0 nmenezes0 force-pushed the feature/389-login-required branch from d67b3ce to e30b0a9 Compare August 13, 2024 15:08
@nmenezes0 nmenezes0 marked this pull request as draft December 30, 2024 10:29
@nmenezes0 nmenezes0 force-pushed the feature/389-login-required branch from e30b0a9 to 39ebcb5 Compare December 30, 2024 12:52
@nmenezes0 nmenezes0 marked this pull request as ready for review December 30, 2024 12:58
@nmenezes0 nmenezes0 force-pushed the feature/389-login-required branch from 39ebcb5 to 6fff21b Compare December 31, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant