mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
[FEAT] Limit Map and Network views to admins
This commit is contained in:
@@ -11,6 +11,7 @@ from django.utils import timezone
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from people import forms, models, serializers
|
||||
from breccia_mapper.views import UserIsStaffMixin
|
||||
|
||||
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
|
||||
|
||||
@@ -57,7 +58,7 @@ filter_people = filter_by_form_answers(
|
||||
)
|
||||
|
||||
|
||||
class NetworkView(LoginRequiredMixin, TemplateView):
|
||||
class NetworkView(UserIsStaffMixin, LoginRequiredMixin, TemplateView):
|
||||
"""View to display relationship network."""
|
||||
template_name = 'people/network.html'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user