mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
bug-1_3_0-001 : if you activate the validation of users comments before
making them visible, before validating the comments, you can see associated picture in the public part comments.php (but not the unvalidated comment, only the picture) [corrected] git-svn-id: http://piwigo.org/svn/branches/release-1_3@287 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -168,6 +168,7 @@ $query.= ' FROM '.PREFIX_TABLE.'comments AS c';
|
||||
$query.= ', '.PREFIX_TABLE.'image_category AS ic';
|
||||
$query.= ' WHERE c.image_id = ic.image_id';
|
||||
$query.= ' AND date > '.$maxtime;
|
||||
$query.= " AND validated = 'true'";
|
||||
// we must not show pictures of a forbidden category
|
||||
if ( $user['forbidden_categories'] != '' )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user