bugfix [ 699010 ] Need Approval option to Discussions like in USS

This commit is contained in:
JT Smith 2003-11-23 17:08:01 +00:00
parent 2d6ff4f7a4
commit 4e708db99c
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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"));