Frontend: Fix database query parameters in sub verifyChannelAccess

This commit is contained in:
mrkubax10 2023-09-18 16:35:22 +02:00
parent be59f24d2d
commit 457bc4bee8

View File

@ -76,7 +76,7 @@ sub verifyChannelAccess {
return 1;
}
$query = $aConnection->prepare(qq(select user_id from accessors where channel_id=$aChannelID and user_id=$userID;));
$query->execute($session->{"username"});
$query->execute();
@row = $query->fetchrow_array();
if(scalar(@row)==0) {
frontend::sendForbidden($aClient, "You don't have access to this channel logs");