Allow non-vetted members to see the alarm status

This commit is contained in:
Tanner Collin 2021-10-06 20:24:21 +00:00
parent 8edff64d94
commit ef44815d7a

View File

@ -514,7 +514,7 @@ class StatsViewSet(viewsets.ViewSet, List):
stats.update(cached_stats)
user = self.request.user
if not user.is_authenticated or not user.member.vetted_date:
if not user.is_authenticated:
stats.pop('alarm', None)
stats['at_protospace'] = utils.is_request_from_protospace(request)