feat: add api endpoint and UI to transfer a board to a different user
Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
committed by
Julius Härtl
parent
3a4ec07103
commit
bf9a51d167
@@ -155,4 +155,15 @@ class BoardController extends ApiController {
|
||||
public function clone($boardId) {
|
||||
return $this->boardService->clone($boardId, $this->userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @param $boardId
|
||||
* @param $owner
|
||||
* @param $newOwner
|
||||
* * @return null|void
|
||||
*/
|
||||
public function transferOwner($boardId, $owner, $newOwner) {
|
||||
return $this->boardService->transferOwnership($owner, $newOwner);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user