DMSPermissionRepository overriding

Hi All
Any chance/idea to override DMSPermissionRepository?

I would like to remove this method applyReadPermissionToParents and avoid to apply READ permission to parents.
Like it was in Axelor 5.0 I want 5.2 features however for file permission I would like to avoid READ permissions for parents directories.

Thanks

Hi @fabiobottan

I don’t try but maybe you can do something with the table dms_permission and overwrite the “READ” value with sql request ?

1 Like

Hi @matthias
I alreay tried but it’s not a clean solution. So was looking for something else.
Because for each permissione ou create DMSPermissionRepository assign READ to parents folders.