diff --git a/frontend_routes.pm b/frontend_routes.pm index c5267eb..326af97 100644 --- a/frontend_routes.pm +++ b/frontend_routes.pm @@ -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");