A bug was reported where the “Edit Groups” button is visible and clickable to non-logged-in users, allowing access to administrative functions like changing text, flair, or managing users dax. While dax noted this appeared strange, testing by ChrisBeach confirmed that attempting to edit results in a 404 error and changes do not persist. ChrisBeach also highlighted a secondary issue where non-logged-in users see groups marked as “Closed” instead of being presented with actionable “Join” or “Request Membership” buttons that trigger a sign-up dialog. tgxworld acknowledged the bug and, after boddhisattva offered to assist, tgxworld approved the contribution. The primary security issue regarding the edit button was resolved in commit 3c4920d tgxworld, and the UI improvement for group actions was subsequently fixed in commit a481bf0 tgxworld.
Hi @tgxworld , I’m new to the Discourse codebase but I would like to take a look at this issue & see if I could fix it while you are away. Is that ok ?
Good spot @Trash. I just tried editing as a non-logged-in user and got a 404 error (and the edit didn’t persist).
Another minor point: when viewing the group list page as a non-logged-in user, groups are shown as “Closed” which is a little bit misleading. I think it would be nicer if the correct actions “Join” / “Request Membership” were shown, and clicking on them popped up the sign-up dialog (as per the behaviour with the like button).