fix perm check for generic inline model resource