From 457bc4bee8c3ef0f331f801023a22d6e1e084af4 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Mon, 18 Sep 2023 16:35:22 +0200 Subject: [PATCH] Frontend: Fix database query parameters in sub verifyChannelAccess --- frontend_routes.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");