Don't use dir in get_obj_perms_model.