Skip to content

[stable20] fix sharer flag on ldap:show-remnants when user owned more than a single share - #23702

Merged
skjnldsv merged 3 commits into
stable20from
fix/noid/remnants-sharee-display-20-and-older
Oct 27, 2020
Merged

[stable20] fix sharer flag on ldap:show-remnants when user owned more than a single share#23702
skjnldsv merged 3 commits into
stable20from
fix/noid/remnants-sharee-display-20-and-older

Conversation

@blizzz

Copy link
Copy Markdown
Member

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>

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

/backport to stable19

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable18

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

Labels

3. to reviewWaiting for reviewsbugfeature: ldap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@blizzz@MorrisJobke@skjnldsv