def check_view_permissions(self):
        return (self.request.user.has_perm('motions.can_see') and
                self.request.user.has_perm('motions.can_manage'))
Docs urls for Classes can differ between Django versions.
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/motions/views.py/MotionPollViewSet.check_view_permissions--crossover with--dataset/ETHPy150Open refreshoxford/django-cbv-inspector/cbv/management/commands/fetch_docs_urls.py/Command.handle