from django.contrib.auth.mixins import AccessMixin
from django.shortcuts import redirect

class ManagerAndLoginRequiredMixin(AccessMixin):
    """Verify that the current user is authenticated and is manager."""
    def dispatch(self, request, *args, **kwargs):
        if not request.user.is_authenticated or not request.user.is_manager:
            print("Hey Bro we got an issue")
            return redirect("leads:lead-list")
        return super().dispatch(request, *args, **kwargs)
fa4a4ca2edb2b290125c631114468a817b4f2dde
<mask token>


class ManagerAndLoginRequiredMixin(AccessMixin):
    <mask token>
    <mask token>

<mask token>


class ManagerAndLoginRequiredMixin(AccessMixin):
    <mask token>

    def dispatch(self, request, *args, **kwargs):
        if not request.user.is_authenticated or not request.user.is_manager:
            print('Hey Bro we got an issue')
            return redirect('leads:lead-list')
        return super().dispatch(request, *args, **kwargs)

<mask token>


class ManagerAndLoginRequiredMixin(AccessMixin):
    """Verify that the current user is authenticated and is manager."""

    def dispatch(self, request, *args, **kwargs):
        if not request.user.is_authenticated or not request.user.is_manager:
            print('Hey Bro we got an issue')
            return redirect('leads:lead-list')
        return super().dispatch(request, *args, **kwargs)

from django.contrib.auth.mixins import AccessMixin
from django.shortcuts import redirect


class ManagerAndLoginRequiredMixin(AccessMixin):
    """Verify that the current user is authenticated and is manager."""

    def dispatch(self, request, *args, **kwargs):
        if not request.user.is_authenticated or not request.user.is_manager:
            print('Hey Bro we got an issue')
            return redirect('leads:lead-list')
        return super().dispatch(request, *args, **kwargs)

from django.contrib.auth.mixins import AccessMixin
from django.shortcuts import redirect

class ManagerAndLoginRequiredMixin(AccessMixin):
    """Verify that the current user is authenticated and is manager."""
    def dispatch(self, request, *args, **kwargs):
        if not request.user.is_authenticated or not request.user.is_manager:
            print("Hey Bro we got an issue")
            return redirect("leads:lead-list")
        return super().dispatch(request, *args, **kwargs)