

def dispatch(self, request, *args, **kwargs):
    roles = self.allowed_roles
    return has_role_decorator(roles)(super(HasRoleMixin, self).dispatch)(request, *args, **kwargs)

dataset/ETHPy150Open vintasoftware/django-role-permissions/rolepermissions/mixins.py HasRoleMixin.dispatch/original