diff --git a/app/exec/sql_query_pdo.php b/app/exec/sql_query_pdo.php index c70078e042..5f6b2ff2f0 100644 --- a/app/exec/sql_query_pdo.php +++ b/app/exec/sql_query_pdo.php @@ -30,7 +30,7 @@ require_once "resources/check_auth.php"; //check permissions - if (if_group("admin") || if_group("superadmin")) { + if (permission_exists('exec_sql')) { //access granted } else {