Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Edit Profile Icon for the Current User Only #1975

Merged

Conversation

rdig
Copy link
Member

@rdig rdig commented Jan 20, 2020

Description

This PR fixes a bug where the user profile would render a profile edit icon (cog wheel) for all users, didn't matter if it was the current user, or someone else.

Granted, the bug was not that severe given that upon clicking it, it would redirect you to your own user profile edit page.

Changes

  • User profile UserMeta now checks if the rendered user is the currently logged in one

Screenshots

Current user:
Screenshot from 2020-01-20 16-23-54

Another user:
Screenshot from 2020-01-20 16-24-08

Resolves #1972

@rdig rdig requested review from chmanie and ceolson01 January 20, 2020 14:27
@rdig rdig self-assigned this Jan 20, 2020
Copy link
Contributor

@ceolson01 ceolson01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work ✅

Looks & works great!

@rdig rdig force-pushed the fix/1972-profile-edit-icon-visible-on-other-users-profile branch from 65a9dff to 3b74f0a Compare January 21, 2020 15:54
@rdig rdig merged commit c9330cd into master Jan 21, 2020
@rdig rdig deleted the fix/1972-profile-edit-icon-visible-on-other-users-profile branch January 21, 2020 16:00
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.

Profile edit icon visible when visiting other user's profile
2 participants