from django_graphene_permissions.permissions import BasePermission

class IsStaff(BasePermission):
    def has_permission(context):
        return context.user and context.user.is_authenticated and context.user.is_staff
2a30a8a6ff1925c91d8f01948c97495da3c878ba
<mask token>

<mask token>


class IsStaff(BasePermission):
    <mask token>

<mask token>


class IsStaff(BasePermission):

    def has_permission(context):
        return (context.user and context.user.is_authenticated and context.
            user.is_staff)

from django_graphene_permissions.permissions import BasePermission


class IsStaff(BasePermission):

    def has_permission(context):
        return (context.user and context.user.is_authenticated and context.
            user.is_staff)

from django_graphene_permissions.permissions import BasePermission

class IsStaff(BasePermission):
    def has_permission(context):
        return context.user and context.user.is_authenticated and context.user.is_staff