django-sql-explorer
django-sql-explorer copied to clipboard
Permissions should be `False` by default
Just had a bit of a scare. I did not set EXPLORER_PERMISSION_CHANGE in my settings.py, only EXPLORER_PERMISSION_VIEW. Because of this, /explorer/play and explorer/new were accessible by any user. I think it would be better if these defaulted to False to prevent access problems.
The default value is user.is_staff -- so unless that was overridden, it should not be the case that any user would have access. Can you expand a bit more?
@WillNilges would love to hear more about this. Please LMK. Otherwise I'll close the issue in a few days. Thank you!