Closed hjhsalo closed 4 years ago
Note that other filtering done in https://github.com/EUDAT-B2SHARE/b2share/blob/03d490120bfb096d102cb2c9d9f38bf2b05cc524/b2share/modules/records/search.py#L72 might affect planned functionality such as review-before-publish workflow.
Drafts search already filters results based on owner: https://github.com/EUDAT-B2SHARE/b2share/blob/03d490120bfb096d102cb2c9d9f38bf2b05cc524/b2share/modules/records/search.py#L79
so adding filtering based owner in UI code is not necessary.
I'm not 100% is the cause why drafts search done this way doesn't work correctly, but drafts search done via profile page (without filtering based on owner field in UI) works.