Prior to this fix it was possible to edit a media that was not editable because no check existed for such a thing. task-2962912 closes odoo/odoo#103035 X-original-commit: ddade4346347266b7f699d05865578dc96e2bf98 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Signed-off-by: Antoine Guenet (age) <age@odoo.com>