'This explicitly checks if we hold particular permission
without involving any locks.
Args:
permstring (str): The permission string to check against.
Returns:
result (bool): If the permstring is passed or not.'

def check_permstring(self, permstring):

    if hasattr(self, 'player'):
        if (self.player and self.player.is_superuser and (not self.player.attributes.get('_quell'))):
            return True
    elif (self.is_superuser and (not self.attributes.get('_quell'))):
        return True
    if (not permstring):
        return False
    perm = permstring.lower()
    perms = [p.lower() for p in self.permissions.all()]
    if (perm in perms):
        return True
    if (perm in _PERMISSION_HIERARCHY):
        ppos = _PERMISSION_HIERARCHY.index(perm)
        return any((True for (hpos, hperm) in enumerate(_PERMISSION_HIERARCHY) if ((hperm in perms) and (hpos > ppos))))
    return False
