Also fix groups

This commit is contained in:
shamoon 2024-04-06 06:54:39 -07:00
parent 0cd5af91a0
commit fa45ed13c2

View File

@ -124,10 +124,14 @@ class DocumentMetadataOverrides:
attach_perms=True, attach_perms=True,
) )
overrides.view_groups = [ overrides.view_groups = [
group.id for group, perms in groups_with_perms if "view_document" in perms group.id
for group in groups_with_perms
if "view_document" in groups_with_perms[group]
] ]
overrides.change_groups = [ overrides.change_groups = [
group.id for group, perms in groups_with_perms if "change_document" in perms group.id
for group in groups_with_perms
if "change_document" in groups_with_perms[group]
] ]
return overrides return overrides