core-geonetwork
core-geonetwork copied to clipboard
Create metadata error when using subportals
Describe the bug
When creating metadata from a subportals an error can be reported depending on the portal filter:
To Reproduce Steps to reproduce the behavior:
- Create groups: groupA, groupB
- Create users: editorA (Editor in the groupA), editorB (Editor in the groupB)
- Create subportals: portalA with filter:
groupPublishedId:100
(use the ID of the groupA), portalB with filter:groupPublishedId:101
(use the ID of the groupB) - Load the iso19139 templates and assign them the view privilege to groupA and groupB
- With editorA, go to portalA and create a metadata --> OK
- With editorA, go to portalB and create a metadata --> An error is displayed. As userA is editor in groupA, the metadata is published to groupA, but the portalB is filtering metadata published to groupB only, causing the error.
Expected behavior
Subportals probably should be disabled for the Editor / Administration modules.