diff --git a/query_store.php b/query_store.php index 6d66fecd1c..1015f6828b 100644 --- a/query_store.php +++ b/query_store.php @@ -103,7 +103,7 @@ } # ensure that we're not making this filter public if we're not allowed -if( !access_has_project_level( config_get( 'stored_query_create_shared_threshold' ) ) ) { +if( $f_is_public && !access_has_project_level( config_get( 'stored_query_create_shared_threshold' ) ) ) { access_denied(); }