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

[stable22] Fix incorrect if conditions in View #31974

Merged
merged 1 commit into from Apr 14, 2022

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #31878

($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>
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 22.2.7 milestone Apr 14, 2022
@blizzz blizzz changed the title [stable22] [stable23] Fix incorrect if conditions in View [stable22] Fix incorrect if conditions in View Apr 14, 2022
@blizzz blizzz added the 3. to review Waiting for reviews label Apr 14, 2022
@blizzz blizzz mentioned this pull request Apr 14, 2022
1 task
@blizzz blizzz 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 14, 2022
@blizzz blizzz merged commit d455b2d into stable22 Apr 14, 2022
@blizzz blizzz deleted the backport/31878/stable22 branch April 14, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants