sfu-dhil / wphp

Women's Print History Project database front end.
https://womensprinthistoryproject.com/
GNU General Public License v2.0
1 stars 8 forks source link

Draft blog posts visible in the drop-down menu for News & Events when not logged in. #150

Closed mnl101 closed 4 years ago

mnl101 commented 4 years ago

Describe the bug: "Draft" blog posts are public in the drop-down menu under News & Events.

To reproduce:

Log out. Click on "News & Events" in the top menu. There is a draft blog post called “Draft example for bug report” that will be visible in the drop-down menu, despite being a "draft" post. See screenshot below.

Expected results: Only "published" blog posts should show up in the drop-down menu for "News & Events."

Screenshots: Screenshot 1: When logged in, if I click “All Announcements” under “News & Events” it shows that the draft post is a “draft” and not public (it does not show up in All Announcements when logged out).

bug issue 1 - screenshot 1

Screenshot 2: When logged out, I can see the “Draft example for bug report” post in the drop-down menu for “News & Events” even though it’s a draft and shouldn’t be visible. bug issue 1 - screenshot 2