This PR fixes a defect reported by Nanohub users that allowed Pending (unpublished) resources to be returned in searches of the site and accessed by unprivileged users. The defect was a result of several issues: incorrect function calls, and failure to check all relevant resource statuses.
Motivation
Nanohub ticket #412067
Testing
Solution was tested on a Hubzero VM on which various public, private, and protected resources were created in various publication states. Fix was quietly added to Nanohub in September 2022.
Summary
This PR fixes a defect reported by Nanohub users that allowed Pending (unpublished) resources to be returned in searches of the site and accessed by unprivileged users. The defect was a result of several issues: incorrect function calls, and failure to check all relevant resource statuses.
Motivation
Nanohub ticket #412067
Testing
Solution was tested on a Hubzero VM on which various public, private, and protected resources were created in various publication states. Fix was quietly added to Nanohub in September 2022.