django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

Add permissions

Open AndreasBackx opened this issue 8 years ago • 1 comments

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?

AndreasBackx avatar Jan 06 '17 19:01 AndreasBackx

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

ekohalsti avatar Mar 14 '17 07:03 ekohalsti