from rest_framework import permissions
from allauth.account.models import EmailAddress


class AccountVerifyPermission(permissions.IsAuthenticated):
    """
    Permission check for verified users
    """

    def has_permission(self, request, view):
        if super().has_permission(request, view):
            user = EmailAddress.objects.get(email=request.user.email)
            return user.verified
        return False

3d3608b8c563087f2a1ab8bd849b8dc165e7d9a7
<mask token>


class AccountVerifyPermission(permissions.IsAuthenticated):
    <mask token>
    <mask token>

<mask token>


class AccountVerifyPermission(permissions.IsAuthenticated):
    <mask token>

    def has_permission(self, request, view):
        if super().has_permission(request, view):
            user = EmailAddress.objects.get(email=request.user.email)
            return user.verified
        return False

<mask token>


class AccountVerifyPermission(permissions.IsAuthenticated):
    """
    Permission check for verified users
    """

    def has_permission(self, request, view):
        if super().has_permission(request, view):
            user = EmailAddress.objects.get(email=request.user.email)
            return user.verified
        return False

from rest_framework import permissions
from allauth.account.models import EmailAddress


class AccountVerifyPermission(permissions.IsAuthenticated):
    """
    Permission check for verified users
    """

    def has_permission(self, request, view):
        if super().has_permission(request, view):
            user = EmailAddress.objects.get(email=request.user.email)
            return user.verified
        return False
