def check_view_permissions(self):
        return (self.request.user.has_perm('motions.can_see') and
                self.request.user.has_perm('motions.can_manage'))
Returns True if the user has required permissions.
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/motions/views.py/MotionPollViewSet.check_view_permissions