HangarMC / Hangar

A plugin repository used for paper plugins
https://hangar.papermc.io/
MIT License
249 stars 65 forks source link

Projects without a version are still visible via direct url #1378

Open FlorianMichael opened 1 month ago

FlorianMichael commented 1 month ago

Observed/problematic behavior

We have a project on our Hangar organisation which had a version uploaded which got removed later. Hangar still allows people without permissions to visit the project page via the direct url:

https://hangar.papermc.io/ViaVersion/ViaBungee

But the project isn't visible on the main page of the organisation. image

After testing this also appears to be the case for projects which never had any version uploaded: https://hangar.papermc.io/EnZaXD/ThisIsATest

Expected behavior

Project urls shouldn't work when no version is uploaded like the error banner at the top says (which I assume is a warning for plugin authors).

image

Steps to reproduce

  1. Open your web browser
  2. Open either https://hangar.papermc.io/EnZaXD/ThisIsATest or https://hangar.papermc.io/ViaVersion/ViaBungee
  3. See the project although it's not listed on the users profile page

Other

No response