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

Add comment about user permissions in User#undestroy #25099

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

maddiedierker
Copy link
Contributor

We didn't realize that when you call undestroy on a user, their permissions are not restored because they are hard-deleted when the user is deleted.

This doesn't happen/matter very often, so adding a comment for clarity for now. When we need to restore a user account, we should ask the user if they previously had any permissions that need to be restored as well, and we'll add those manually.

Copy link
Contributor

@aoby aoby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for adding this comment! Hopefully it will be less of a surprise next time ;)

@maddiedierker maddiedierker merged commit e7dd45b into staging Sep 28, 2018
@maddiedierker maddiedierker deleted the undestroy-comment branch September 28, 2018 19:28
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.

None yet

2 participants