Transfer deck ownership even if target user already participant of a board

https://github.com/nextcloud/deck/pull/1955#issuecomment-640392715
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
This commit is contained in:
Sergey Shliakhov
2020-07-18 07:40:47 +03:00
committed by Julius Härtl
parent a0f93a81d2
commit bdf4631504
4 changed files with 113 additions and 53 deletions

View File

@@ -682,9 +682,9 @@ class BoardService {
*/
public function transferOwnership($owner, $newOwner) {
$this->boardMapper->transferOwnership($owner, $newOwner);
$this->assignedUsersMapper->transferOwnership($owner, $newOwner);
$this->aclMapper->transferOwnership($owner, $newOwner);
$this->cardMapper->transferOwnership($owner, $newOwner);
$this->aclMapper->transferOwnership($owner, $newOwner);
$this->assignedUsersMapper->transferOwnership($owner, $newOwner);
$this->cardMapper->transferOwnership($owner, $newOwner);
}
private function enrichWithStacks($board, $since = -1) {