Allow force delete to have a clean test env after creating boards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -176,6 +176,12 @@ class BoardService {
|
||||
$this->boardMapper->update($board);
|
||||
}
|
||||
|
||||
public function deleteForce($id) {
|
||||
$this->permissionService->checkPermission($this->boardMapper, $id, Acl::PERMISSION_READ);
|
||||
$board = $this->find($id);
|
||||
return $this->boardMapper->delete($board);
|
||||
}
|
||||
|
||||
public function update($id, $title, $color, $archived) {
|
||||
$this->permissionService->checkPermission($this->boardMapper, $id, Acl::PERMISSION_MANAGE);
|
||||
$board = $this->find($id);
|
||||
|
||||
Reference in New Issue
Block a user