mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-26 02:07:58 -05:00
The 'add a bio' link on the member profile page was previously shown based on the `can? :edit, @member` ability check. This caused an issue for admins, who could see the link on other users' profiles, but the link would incorrectly lead to their own settings page. This change modifies the condition to be `member_signed_in? && current_member == @member`. This ensures the link is only displayed when a logged-in user is viewing their own profile, which is the correct and intended behavior.