diff --git a/core/apps/notifications/views/notification.py b/core/apps/notifications/views/notification.py index b752003..68ef8c9 100644 --- a/core/apps/notifications/views/notification.py +++ b/core/apps/notifications/views/notification.py @@ -3,11 +3,13 @@ from rest_framework.response import Response from core.apps.notifications.serializers import notification as serializers from core.apps.notifications.models import Notification +from core.apps.accounts.permissions.permissions import HasRolePermission class RegisterExpoPushToken(generics.GenericAPIView): serializer_class = serializers.NotificationSerializer queryset = Notification.objects.all() + permission_classes = [HasRolePermission] def post(self, request): serializer = self.serializer_class(data=request.data)