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

Delete boards that users own once they are deleted #1976

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

juliusknorr
Copy link
Member

Make sure that users boards are properly removed on user delete

@codecov-commenter
Copy link

codecov-commenter commented Jun 2, 2020

Codecov Report

Merging #1976 into master will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #1976      +/-   ##
==========================================
- Coverage   56.92%   56.81%   -0.11%     
==========================================
  Files          77       77              
  Lines        3842     3849       +7     
==========================================
  Hits         2187     2187              
- Misses       1655     1662       +7     

@stefan-niedermann
Copy link
Member

Will this solution cover also boards that has been shared with the "deleted" user?

@juliusknorr
Copy link
Member Author

Will this solution cover also boards that has been shared with the "deleted" user?

Yes, user acl entries already get removes some lines above https://github.com/nextcloud/deck/blob/master/lib/AppInfo/Application.php#L120

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr force-pushed the bugfix/noid/delete-boards-on-user-delete branch from 000607d to 1f4ab91 Compare June 2, 2020 15:26
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

🚀

@juliusknorr juliusknorr merged commit 9849ad0 into master Jun 3, 2020
@juliusknorr juliusknorr deleted the bugfix/noid/delete-boards-on-user-delete branch June 3, 2020 10:20
@stefan-niedermann
Copy link
Member

Sorry for nut picking... but maybe you should also add a clean step on app upgrade which check for cases where boards are present but user has been deleted, just to make sure?

It's still potential leaked data...

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

Successfully merging this pull request may close these issues.

5 participants