mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #1842: Implement support for Django 2.0
This commit is contained in:
@ -68,7 +68,7 @@ class SecretViewSet(ModelViewSet):
|
||||
|
||||
super(SecretViewSet, self).initial(request, *args, **kwargs)
|
||||
|
||||
if request.user.is_authenticated():
|
||||
if request.user.is_authenticated:
|
||||
|
||||
# Read session key from HTTP cookie or header if it has been provided. The session key must be provided in
|
||||
# order to encrypt/decrypt secrets.
|
||||
|
Reference in New Issue
Block a user