Skip to content

Commit

Permalink
Fix incorrect permission check during search
Browse files Browse the repository at this point in the history
Fix issue with permission checking during searching
  • Loading branch information
samerton committed Oct 5, 2016
1 parent fd107b6 commit 91bcda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/forum/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
// Loop through merged items and see if they're just topics, just posts, or both
foreach($merged_results as $key => $result){
// Check type; topic or post?
if(isset($result['post_content'])) $type = 'post';
if(isset($result['post']['post_content'])) $type = 'post';
else $type = 'topic';

// Check permissions
Expand Down

0 comments on commit 91bcda3

Please sign in to comment.