Open umhan35 opened 1 month ago
Anonymized view-only homepage of a project, e.g., https://osf.io/ga9w8/?view_only=3ec356c101944ec092c6badfbb0fb593
The open button should not appear for people to go to the GitHub link
One can click the open button and find out information about the contributors of the OSF repo
Related code that may have caused this:
https://github.com/CenterForOpenScience/osf.io/blob/3920a29ff5c92a45229e618931661cc5d0c8a08d/addons/github/static/githubFangornConfig.js#L283-L291
Similar to the hidden GitHub repo (username/repo-name) in a view-only link, as seen below, the Open button should also be hidden.
I think the branch list should also be hidden in a view-only link
What you did (step by step)
Where does this happen on the OSF?
Anonymized view-only homepage of a project, e.g., https://osf.io/ga9w8/?view_only=3ec356c101944ec092c6badfbb0fb593
What you expected
The open button should not appear for people to go to the GitHub link
What actually happened
One can click the open button and find out information about the contributors of the OSF repo
Potential causes
Related code that may have caused this:
https://github.com/CenterForOpenScience/osf.io/blob/3920a29ff5c92a45229e618931661cc5d0c8a08d/addons/github/static/githubFangornConfig.js#L283-L291
Suggest a solution
Similar to the hidden GitHub repo (username/repo-name) in a view-only link, as seen below, the Open button should also be hidden.
Final words
I think the branch list should also be hidden in a view-only link