Skip to content

ERP5Catalog: Drop empty local_roles_group

Whenever the Role information uses local_group and gives a Role that provides no View in the Document, an UID is set on catalog table (on the xxx_security_uid column) but no entry is found on roles_and_users.

This case, don't impact security but prevent us to ensure consistency of the roles_and_users table, since we expect that all security_uids set are present.

This patch excludes de empty groups, whenever no View permission is provided for a given group, leading to a Null value rather a missleading uid on catalog table.

Merge request reports