Undo deletion of boards via API.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
7dcd49c485
commit
b4224dadfb
@@ -89,6 +89,18 @@ class BoardApiController extends ApiController {
|
||||
return (new DataResponse($board));
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @CORS
|
||||
* @NoCSRFRequired
|
||||
*/
|
||||
public function undoDelete($id) {
|
||||
$board = $this->service->find($id);
|
||||
$this->service->deleteUndo($id);
|
||||
|
||||
return (new DataResponse($board));
|
||||
}
|
||||
|
||||
// this is taken from BoardController, but it's not ideal
|
||||
private function getUserInfo() {
|
||||
$groups = $this->groupManager->getUserGroupIds(
|
||||
|
||||
Reference in New Issue
Block a user