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

Issue 73 create and edit permission file #91

Merged
merged 3 commits into from
Jan 25, 2025

Conversation

TroubledPhilip
Copy link
Contributor

@TroubledPhilip TroubledPhilip commented Jan 25, 2025

Change Summary

Add a permissions.py file so that developers don't need to write statements on their own.

How to use

  1. import the corresponding permission class from the file
  2. Under the class based view, add the corresponding property. Example:
    permission_classes = [permissions.IsTeacher]

Related issue

@TroubledPhilip TroubledPhilip linked an issue Jan 25, 2025 that may be closed by this pull request
@TroubledPhilip TroubledPhilip requested a review from dct0 January 25, 2025 07:09
Copy link
Contributor

@dct0 dct0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TroubledPhilip TroubledPhilip merged commit 55d2e69 into main Jan 25, 2025
5 checks passed
@loklokyx loklokyx deleted the issue-73-create-and-edit-permission-file branch February 24, 2025 13:31
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.

Create and edit permission file
2 participants