Comment 3 for bug 1734178

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8371
Committed: https://git.mahara.org/mahara/mahara/commit/9837f1820c7ba0baad3e8ea2ee68b6fdd9259a95
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 9837f1820c7ba0baad3e8ea2ee68b6fdd9259a95
Author: Cecilia Vela Gurovic <email address hidden>
Date: Fri Dec 8 14:59:50 2017 +1300

Bug 1734178: allow user to delete own account

added settings

- institution level: reviewselfdeletion
0 if the institution does not require approval
from an admin to delete an account
1 if the institution requires an admin to approve
account deletion requests from users
if not set, it takes the value from the site's
default

- site level: defaultreviewselfdeletion
(Site options->User Settings -> Review account before self-deletion)
1 if the site's default is requiring approval
null otherwise

Account deletion by a user

when a user accesses to the account settings, a
'Delete account' button is displayed.

This will:
- If the user belongs to an institution that requires
approval (or does not have the settings but the site
requires approval by default)
then a notification will be sent to the admins
of the institutions that require approval that
the user belongs to
- if the user belongs to institutions and none of them
require approval (or does not have the setting
but the site does not require approval by default)
then the account is deleted
- if the user does not belong to any institution
then the action will depend on the setting of
the 'mahara' institution or sites default if
'mahara' doesn't have the setting

Approval by institution admins

An institution admin can see the pending deletion
requests in Admin menu-> Institution -> Pending deletions
After approving/denying a request, the user
that requested the account deletion will receive
a notification

behatnotneeded
Change-Id: I4ccd9c798cab065ec557eaddf7dfc3a51920b6d0