community-platform
community-platform copied to clipboard
[bug] Deleting User Profile does not work

Describe the bug
It is not possible to delete a User profile.
To Reproduce Steps to reproduce the behavior:
- Go to User Profile > Settings
- Scroll down to 'Account Settings'
- Click on 'Delete Profile'
- 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
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?

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.
thanks for looking into it @IvaTsu Strange.. perhaps a permission issue in Firebase?
@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.
@chrismclarke, tagging you in here. You might have some suggestions since you love dealing with Firebase permissions