[FIX]ir_attachement: if res_id = 0, allow to read if allowed to read model