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

Prevent unauthorized access by using a base class #544

Closed
Tracked by #528
SSPJ opened this issue Apr 26, 2023 · 0 comments · Fixed by #651
Closed
Tracked by #528

Prevent unauthorized access by using a base class #544

SSPJ opened this issue Apr 26, 2023 · 0 comments · Fixed by #651
Assignees
Labels
Milestone

Comments

@SSPJ
Copy link
Contributor

SSPJ commented Apr 26, 2023

The current permission system is opt-in, which allows too much room for mistakes. Update the permission system to be opt-out.

One potential method is to make all views class-based and ensure they inherit from a common base class which has appropriate permission mixins. Other methods may exist as well. Django's own auth system may provide some inspiration.

This work may intersect with #543.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants