def perm_above(accessing_obj, accessed_obj, *args, **kwargs):
    kwargs["_greater_than"] = True
    return perm(accessing_obj, accessed_obj, *args, **kwargs)
Only allow objects with a permission *higher* in the permission
dataset/ETHPy150Open evennia/evennia/evennia/locks/lockfuncs.py/perm_above