Skip to content

[stable23] Fix incorrect if conditions in View - #31878

Merged
blizzz merged 1 commit into
stable23from
backport/31754/stable23
Apr 14, 2022
Merged

[stable23] Fix incorrect if conditions in View#31878
blizzz merged 1 commit into
stable23from
backport/31754/stable23

Conversation

@come-nc

Copy link
Copy Markdown
Contributor

Backport #31754

Only backported the fix itself as the other commit did not apply

@come-nccome-nc added the 3. to review Waiting for reviews label Apr 7, 2022
@come-nccome-nc added this to the Nextcloud 23.0.4 milestone Apr 7, 2022
@come-nccome-nc self-assigned this Apr 7, 2022
@come-nc
come-nc requested review from a team, blizzz, icewind1991 and juliusknorr and removed request for a teamApril 7, 2022 13:39
@come-nc

Copy link
Copy Markdown
ContributorAuthor

/backport to stable22

@blizzz

Copy link
Copy Markdown
Member

/rebase

@blizzzblizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Apr 13, 2022
@blizzzblizzz mentioned this pull request Apr 13, 2022
($something->getPermissions() && Constants::PERMISSION_READ) does not
make sense as PERMISSION_READ contant is 1 this will always evaluate to
true.
getPersmissions is returning an int which is a bitwise combination as
documented in the interface, so it should be used with bit operators.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@artonge
artongeforce-pushed the backport/31754/stable23 branch from 487e06b to aef9ba2CompareApril 14, 2022 09:06
@blizzz
blizzz merged commit bc52905 into stable23Apr 14, 2022
@blizzz
blizzz deleted the backport/31754/stable23 branch April 14, 2022 11:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@come-nc@blizzz@artonge