fix: camel case errors

pull/202/head
Specht, David 2022-03-17 12:08:04 +01:00
parent bec283e60d
commit 1917bf116f
2 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ class RoomController extends Controller {
return new DataResponse(['message' => 'Not allowed to enable recordings.'], Http::STATUS_BAD_REQUEST); return new DataResponse(['message' => 'Not allowed to enable recordings.'], Http::STATUS_BAD_REQUEST);
} }
if (!$restriction->getallowLogoutURL() && $logoutURL !== $room->getlogoutURL()) { if (!$restriction->getAllowLogoutURL() && $logoutURL !== $room->getLogoutURL()) {
return new DataResponse(['message' => 'Not allowed to enable custom logout URLs'], Https::STATUS_BAD_REQUEST); return new DataResponse(['message' => 'Not allowed to enable custom logout URLs'], Https::STATUS_BAD_REQUEST);
} }

View File

@ -58,8 +58,8 @@ class RestrictionService {
$restriction->setAllowRecording($r->getAllowRecording()); $restriction->setAllowRecording($r->getAllowRecording());
} }
if (!$restriction->getallowLogoutURL() && $r->getallowLogoutURL()) { if (!$restriction->getAllowLogoutURL() && $r->getAllowLogoutURL()) {
$restriction->setallowLogoutURL($r->getallowLogoutURL()); $restriction->setAllowLogoutURL($r->getAllowLogoutURL());
} }
} }
@ -95,7 +95,7 @@ class RestrictionService {
$restriction->setRoomTypes(\json_encode($roomTypes)); $restriction->setRoomTypes(\json_encode($roomTypes));
$restriction->setMaxParticipants(\max($maxParticipants, -1)); $restriction->setMaxParticipants(\max($maxParticipants, -1));
$restriction->setAllowRecording($allowRecording); $restriction->setAllowRecording($allowRecording);
$restriction->setallowLogoutURL($allowLogoutURL); $restriction->setAllowLogoutURL($allowLogoutURL);
return $this->mapper->update($restriction); return $this->mapper->update($restriction);
} catch (Exception $e) { } catch (Exception $e) {