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

Bug Report: Edit Profile button should be removed while visiting another user's profile #1489

Closed
pateldivyesh1323 opened this issue Jan 24, 2024 · 6 comments
Labels
bug Something isn't working unapproved

Comments

@pateldivyesh1323
Copy link
Contributor

Describe the bug

When a user visits another user's profile on the admin panel, it can see Edit Profile button which leads to edit profile page where there prefilled information of the user it was visiting. Now the user thinks that it is editing another user's profile but it is actually editing his own profile with prefilled information of another user and when it submits it's profile gets updated with information of another user.

So, to solve this issue the Edit profile button should be removed while viewing another user's profile.

To Reproduce
Steps to reproduce the behavior:

  1. Go to people
  2. Visit any user
  3. Click on Edit profile
  4. Change email and some fields
  5. Click on submit

Expected behavior

Edit profile button should be removed while viewing some other user's profile

Actual behavior

Edit profile button exists, which misleads the user.

Video

User.Details.-.Google.Chrome.2024-01-24.16-59-44.mp4

Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship PalisadoesFoundation/talawa#359

@pateldivyesh1323 pateldivyesh1323 added the bug Something isn't working label Jan 24, 2024
@pateldivyesh1323
Copy link
Contributor Author

I would like to work on this, if this is a valid issue.

@Cioppolo14
Copy link
Contributor

@pateldivyesh1323 have you tried this when you are logged in as a regular user and not a superadmin?

@pateldivyesh1323
Copy link
Contributor Author

@Cioppolo14 Regular user cannot login into admin portal, but this issue exists for both admin and superadmin.

@Cioppolo14
Copy link
Contributor

@pateldivyesh1323 Thank you for the correction! I am going to look into whether this is intentional or not. I will follow up.

@ssarkar551
Copy link

Hey @Cioppolo14 , if this issue is verified I would like to work on this

@Cioppolo14
Copy link
Contributor

This is an intentional design feature, I am going to close this as unplanned.

@Cioppolo14 Cioppolo14 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unapproved
Projects
None yet
Development

No branches or pull requests

3 participants