-
- Downloads
[FIX] only prefetch other cached records with read field uncached during _read_from_database
If expansion of the recordset is done during _prefetch_field, if one of the prefetches (not the base record(s) but one of those selected by BaseModel._in_cache_without) can't be read by the current user (due to an access rule or for field reading reasons, or whatever) the whole read is failed, even if the record which was specifically asked for could be read on its own. By only expanding the read set in _read_from_database, the cache is correctly set but read() and _prefetch_field() only check the records explicitly asked for for AccessDenied, prefetched records will only be asked if they are ever accessed. fixes #1013
Loading
Please register or sign in to comment