Skip to content

Commit

Permalink
Force temporary filters for anonymous user
Browse files Browse the repository at this point in the history
If user is anonymous, every change made to the filter creates a
temporary filter. This way the differents users that may be logged in as
anonymous don't share the filter settings.

Fixes: #8167
  • Loading branch information
cproensa authored and atrol committed Mar 4, 2018
1 parent 682072e commit 7c4880b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions view_all_set.php
Expand Up @@ -74,6 +74,11 @@
$t_temp_filter = $f_make_temporary || filter_is_temporary( $t_setting_arr );
$t_previous_temporary_key = filter_get_temporary_key( $t_setting_arr );

# If user is anonymous, force the creation of a temporary filter
if( current_user_is_anonymous() ) {
$t_temp_filter = true;
}


# Clear the source query id. Since we have entered new filter criteria.
if( isset( $t_setting_arr['_source_query_id'] ) ) {
Expand Down

0 comments on commit 7c4880b

Please sign in to comment.