Should be the final commit

Took 36 minutes
This commit is contained in:
2020-10-03 20:35:44 +02:00
parent f6d2e3a62a
commit 7a6688a4a6
4 changed files with 25 additions and 16 deletions

View File

@ -89,7 +89,8 @@ class FaqModel
{
return false;
}
if( $result['owner_sid'] === session_id() )
$secret = empty( $_COOKIE['owner_room_' . $a_room['id'] ] ) ? null : $_COOKIE['owner_room_' . $a_room['id'] ];
if( $result['owner_sid'] === $secret )
{
return true;
}