Update lib/Controller/SessionController.php

Co-authored-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2022-11-04 23:51:39 +01:00
committed by chandi Langecker
parent e1e29feb7b
commit 8007a06c94

View File

@@ -84,7 +84,7 @@ class SessionController extends ApiController {
* @param $boardId
* @return bool
*/
public function close($boardId, $token) {
public function close(int $boardId, string $token) {
$this->permissionService->checkPermission($this->boardMapper, $boardId, Acl::PERMISSION_READ);
$this->sessionService->closeSession((int)$boardId, $token);
return true;