Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Oct 26, 2020

Little sibling of #23700 for Nextcloud 20 and below.

Fixes the condition and stupid DB query. But also adds a unit tests which requires the business logic being drawn out of OfflineUser's constructor, which was bad style anyhow.

Previously, if you had a gone LDAP user owning two or more shares, the "Sharer" flag in the table output would say N(o) instead of Y(es). Unit test added.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Code looks good 👍

@blizzz
Copy link
Member Author

blizzz commented Oct 27, 2020

/backport to stable19

@blizzz
Copy link
Member Author

blizzz commented Oct 27, 2020

/backport to stable18

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants