Frontend: Fix database query parameters in sub verifyChannelAccess
This commit is contained in:
parent
be59f24d2d
commit
457bc4bee8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user