<reponame>Aruta1ru/web-vdgo<gh_stars>0
from rest_framework import permissions


class HasAdminRole(permissions.BasePermission):
    def has_permission(self, request, view):
        return request.user.is_admin_role

from rest_framework import permissions


class HasAdminRole(permissions.BasePermission):
    def has_permission(self, request, view):
        return request.user.is_admin_role