Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

@google-labs-jules google-labs-jules bot commented Aug 31, 2025

Fix #3668

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.

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.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

@CloCkWeRX CloCkWeRX marked this pull request as ready for review September 1, 2025 06:09
@CloCkWeRX CloCkWeRX merged commit 508ee52 into dev Sep 1, 2025
16 checks passed
@CloCkWeRX CloCkWeRX deleted the fix/profile-bio-link branch September 1, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't show add a bio link unless you are that user

2 participants