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

Add permissions #151

Open
AndreasBackx opened this issue Jan 6, 2017 · 1 comment
Open

Add permissions #151

AndreasBackx opened this issue Jan 6, 2017 · 1 comment

Comments

@AndreasBackx
Copy link

It would be great if we could hide the API behind a login that only allows superusers to login. I'm up for creating a PR. This functionality could be enabled via the settings:

REST_FRAMEWORK_DOCS = {
    'PERMISSIONS_REQUIRED': True  # Set the default to True perhaps?
}

What do you think?

@ekohalsti
Copy link

Would it not be the most intuitive solution for DRFDOCS to adhere to default permissions of DRF?

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

No branches or pull requests

2 participants