Skip to content

Commit

Permalink
Correct access checks when storing filters
Browse files Browse the repository at this point in the history
Fixes #24437
  • Loading branch information
atrol committed May 23, 2018
1 parent 3a6b55d commit b421ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query_store.php
Expand Up @@ -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();
}

Expand Down

0 comments on commit b421ab2

Please sign in to comment.