summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VNWeb/Discussions/Lib.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNWeb/Discussions/Lib.pm b/lib/VNWeb/Discussions/Lib.pm
index 4ab1900c..f2d6c98d 100644
--- a/lib/VNWeb/Discussions/Lib.pm
+++ b/lib/VNWeb/Discussions/Lib.pm
@@ -15,6 +15,7 @@ sub post_url {
# Returns a WHERE condition to filter threads that the current user is allowed to see.
sub sql_visible_threads {
+ return '1=1' if auth && auth->uid == 2; # Yorhel sees everything
sql_and
auth->permBoardmod ? () : ('NOT t.hidden'),
sql('NOT t.private OR EXISTS(SELECT 1 FROM threads_boards WHERE tid = t.id AND type = \'u\' AND iid =', \auth->uid, ')');