def has_permission(self, request, view):
        return request.user and request.user.is_superuser
Check if user is a superuser.
dataset/ETHPy150Open ExCiteS/geokey/geokey/superusertools/base.py/IsSuperuser.has_permission