Fixed inverted permission check
Fixed bug where search term rule and attribute filter rules got joined together with an 'AND' statement