Put view under auth
@@ -12,6 +12,7 @@ from django.views.generic import ListView
from rest_framework.authtoken.models import Token
from readthedocs.core.forms import UserAdvertisingForm, UserDeleteForm
+from readthedocs.core.mixins import PrivateViewMixin
@login_required
@@ -209,7 +210,7 @@ def account_advertising(request):
)
-class TokenMixin:
+class TokenMixin(PrivateViewMixin):
"""Environment Variables to be added when building the Project."""
