From 4e708db99cff1e7b89801cc6f3a3123d5fa6d983 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 23 Nov 2003 17:08:01 +0000 Subject: [PATCH] bugfix [ 699010 ] Need Approval option to Discussions like in USS --- docs/changelog/5.x.x.txt | 1 + lib/WebGUI/Wobject/USS.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index 7d26b229e..a97d09e29 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -4,6 +4,7 @@ - Fixed a typo in the Forum Threads that caused an error upon deleting a post. - Bugfix [ 847198 ] no final newline when data form errors display + - Bugfix [ 699010 ] Need Approval option to Discussions like in USS 5.5.2 diff --git a/lib/WebGUI/Wobject/USS.pm b/lib/WebGUI/Wobject/USS.pm index 7c45b6edf..a13e5b447 100644 --- a/lib/WebGUI/Wobject/USS.pm +++ b/lib/WebGUI/Wobject/USS.pm @@ -420,7 +420,7 @@ sub www_view { if ($constraints ne "") { $constraints = "status='Approved' and ".$constraints; } else { - $constraints = "(status='Approved' or userId=$session{user}{userId})"; + $constraints = "(status='Approved' or (userId=$session{user}{userId} and userId<>1))"; } $var{"title.label"} = WebGUI::International::get(99); $var{"thumbnail.label"} = WebGUI::International::get(52,$_[0]->get("namespace"));