mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Provide field in UserInputException in RoomAction::validateJoin()
This commit is contained in:
parent
ae5287c398
commit
0f049ba48a
@ -167,7 +167,7 @@ public function validateJoin() {
|
||||
$this->readInteger('roomID');
|
||||
|
||||
$room = RoomCache::getInstance()->getRoom($this->parameters['roomID']);
|
||||
if ($room === null) throw new exception\UserInputException();
|
||||
if ($room === null) throw new exception\UserInputException('roomID');
|
||||
if (!$room->canEnter()) throw new exception\PermissionDeniedException();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user