community-platform icon indicating copy to clipboard operation
community-platform copied to clipboard

[bug] Deleting User Profile does not work

Open thisislawatts opened this issue 3 years ago • 5 comments

Screenshot 2022-01-26 at 17 45 42

Describe the bug

It is not possible to delete a User profile.

To Reproduce Steps to reproduce the behavior:

  1. Go to User Profile > Settings
  2. Scroll down to 'Account Settings'
  3. Click on 'Delete Profile'
  4. Nothing happens

In the browser console the following message is displayed: Uncaught (in promise) Error: PERMISSION_DENIED: Permission denied

Expected behavior

A user should be able to delete their own account without contacting support/raising a ticket.

NOTE: Also need to clean up mappins on delete

thisislawatts avatar Jan 26 '22 16:01 thisislawatts

hmm.. I tried it and managed to delete my profile. Seems to work? However due to caching it still shows in the local browser so probably the user thinks its not deleted. If I try another browser it' says user not found Someone else could try to double check?

caching

davehakkens avatar Jan 26 '22 16:01 davehakkens

Hey @thisislawatts @davehakkens

I am not able to delete the account when hitting Settings -> Delete Profile at https://community.preciousplastic.com/settings

I have 1 warning and 1 error at the console: @firebase/database: – "FIREBASE WARNING: set at /v3_users/{my_username} failed: permission_denied " Unhandled Promise Rejection: Error: PERMISSION_DENIED: Permission denied

But, if I run the master branch of the fork (ONEARMY/community-platform), it does delete the account.

Hope it help.

IvaTsu avatar Aug 17 '22 11:08 IvaTsu

thanks for looking into it @IvaTsu Strange.. perhaps a permission issue in Firebase?

davehakkens avatar Aug 17 '22 12:08 davehakkens

@davehakkens looks like that, maybe this will give more info: https://stackoverflow.com/questions/37403747/firebase-permission-denied I found it related to this issue.

IvaTsu avatar Aug 17 '22 14:08 IvaTsu

@chrismclarke, tagging you in here. You might have some suggestions since you love dealing with Firebase permissions

davehakkens avatar Aug 18 '22 11:08 davehakkens