Incorrect URL for compare button on non forked repos not owned by user #5924
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
issue/regression
Issue needs no code to be fixed, only a description on how to fix it yourself
topic/ui
Change the appearance of the Gitea UI
type/bug
Milestone
[x]
):Description
Hi,
we've recently migrated to 1.7.1, and the compare button is showing the
.SignedUserName
for repositories which are neither a fork nor owned by the user. This wasn't happening on 1.6.0.Seems 5c30817 introduced this behaviour, as part of #5877 released on 1.7.1.
How to reproduce
on try.gitea.io, user perry1234 created repo test-repo123 and added perry1235 as a collaborator, with admin rights
test-repo123 has two branches. When perry1235 clicks on the compare button, he gets an incorrect URL (see attached screenshot)
Screenshots
The text was updated successfully, but these errors were encountered: