Question Self-removal of a user
- wuja
- Topic Author
- Offline
- New Member
Less
More
2 years 11 months ago #1
by wuja
www.kin.wojciechgracz.pl webtrees 2.0.19
Self-removal of a user was created by wuja
How to prevent the user from deleting the account by himself?
www.kin.wojciechgracz.pl webtrees 2.0.19
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
2 years 11 months ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Self-removal of a user
GDPR and other rules say that users should be able to delete accounts that they no longer need.
If a user wants to delete their account, what will you do?
I guess you could remove the delete button on the account-edit page, using JavaScript. e.g. something like this
If a user wants to delete their account, what will you do?
I guess you could remove the delete button on the account-edit page, using JavaScript. e.g. something like this
Code:
let btn = document.querySelector('.wt-route-AccountEdit .btn-delete');
if (btn) {
let row = btn.parentNode;
row.parentNode.removeChild(row);
}
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- wuja
- Topic Author
- Offline
- New Member
2 years 11 months ago #3
by wuja
One such person removed himself because he was offended. It gets a little messy: there is no culprit in the recent shifts.
www.kin.wojciechgracz.pl webtrees 2.0.19
Replied by wuja on topic Self-removal of a user
I will delete it, but before that, I will ask the victim to think about it.If a user wants to delete their account, what will you do?
One such person removed himself because he was offended. It gets a little messy: there is no culprit in the recent shifts.
www.kin.wojciechgracz.pl webtrees 2.0.19
Please Log in or Create an account to join the conversation.