Show disabled fork button for user without enough permissions
What does this MR do and why?
Contributes to #259693 (closed)
Problem
We currently hide both the fork button and the fork count on the project's page when the user cannot fork the project. This behavior does not match other pages where the user can see the fork count number.
Solution
- Mark fork button as disabled
- Show tooltip with an explanation
Screenshots or screen recordings
How to set up and validate locally
- Invite user with Guest permissions to the private project
- Sign in as the Guest user
- Visit project page
- Verify that fork button and forks count are visible and disabled
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin