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

UHF-9832 User cancellation form #754

Merged
merged 2 commits into from
May 7, 2024
Merged

UHF-9832 User cancellation form #754

merged 2 commits into from
May 7, 2024

Conversation

khalima
Copy link
Contributor

@khalima khalima commented May 6, 2024

UHF-9832

What was done

  • Added a new permission 'delete user accounts' and let only user with that permission to delete other users.
  • Altered the user_cancel_methods to let only users with high enough permissions to delete other users.
  • Added test for the user deletion/cancellation form.

How to install

  • Make sure your instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the Helfi Platform config
    • composer require drupal/helfi_platform_config:dev-UHF-9832
  • Run make drush-updb drush-cr

How to test

User cancellation

  • Login with a user with super administrator role
  • Go to /admin/people and edit a user of your choice. On user edit page click on "Cancel account".
    • Check that there are all four cancellation methods available
  • Go to edit your own user, remove the super administrator role and set the administrator role active
  • Go to /admin/people and edit a user of your choice. On user edit page click on "Cancel account".
    • Check that there are only disabling methods available

Continuous documentation

  • This feature has been documented/the documentation has been updated
  • This change doesn't require updates to the documentation

Other PRs

Copy link

sonarqubecloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants