Skip to content

Fix: Check all circle shares for permissions#3625

Merged
juliusknorr merged 1 commit intonextcloud:masterfrom
bink:bugfix/correct-acl-for-cirlce-and-member-shares
Apr 11, 2022
Merged

Fix: Check all circle shares for permissions#3625
juliusknorr merged 1 commit intonextcloud:masterfrom
bink:bugfix/correct-acl-for-cirlce-and-member-shares

Conversation

@bink
Copy link
Copy Markdown

@bink bink commented Mar 9, 2022

  • Target version: master

Summary

Fixes a bug that appears when a board is shared with multiple circles, causing calendars not to work because of a permission exception.
If a board is shared with a circle, the \OCA\Deck\Service\PermissionService::userCan method would only return the permissions for the first circle and not evaluate other permissions like groups or other circles. This is fixed by only returning true if the permissions are actually present and continuing the check when they are not.

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Documentation (manuals or wiki) has been updated or is not required

@juliusknorr
Copy link
Copy Markdown
Member

Thanks for your pull request and good catch on the bug.

Could you have a look at the failing DCO check? https://github.com/nextcloud/deck/pull/3625/checks?check_run_id=5639445346 should give you more details about that. Otherwise that is good to get merged from my side 👍

@juliusknorr
Copy link
Copy Markdown
Member

Let's get this in without the DCO since it is a very minor change code wise.

@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable23

@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable22

@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable21

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.

3 participants