In providence 2.0.9 (also happens in 2.0.8) an object was created and an object representation was asigned.
When in the object editor (also from summary), when you click in the image and then try to download the image using the download icon you get "access denied" (and also displayed in the app log)
The traces leaves me to /var/www/html/ca/app/lib/BaseEditorController.php line 2529
i went first to the isReadable function but in some point i realized that the code was never reaching that point.
so, i went back to BaseEditorController to try to understand the exec flow and put a line on top of the offending one:
print_r ($t_rep->isReadable($this->request->user));
return;
and i see nothing, like empty and i was expecting 1 or 0 from the possible outputs of the isReadable function.
And if I print the content of $t_rep itself i get:
ca_object_representations Object ( [errors] => Array ( ) [error_output:BaseObject:private] => [ACCESS_MODE:BaseModel:private] => [o_db:BaseModel:private] => Db Object ( [opb_die_on_error] => [errors] => Array ( ) [opo_db:Db:private] => Db_mysqli Object ( [opr_db] => mysqli Object ( [affected_rows] => 11 [client_info] => mysqlnd 8.3.6 [client_version] => .....
I also tried to change $t_rep->isReadable($this->request->user) with $t_rep->isReadable($this->request) since it looked to me that the isReadable function was expecting a request not an user but no luck.
How can i troubleshoot this? We have all the level access enabled