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

Fix: Check all circle shares for permissions #3625

Merged
merged 1 commit into from
Apr 11, 2022
Merged

Fix: Check all circle shares for permissions #3625

merged 1 commit into from
Apr 11, 2022

Conversation

bink
Copy link

@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

@juliushaertl
Copy link
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 👍

@juliushaertl
Copy link
Member

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

@juliushaertl
Copy link
Member

/backport to stable23

@juliushaertl
Copy link
Member

/backport to stable22

@juliushaertl
Copy link
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