Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

+11 -1
View File
@@ -82,10 +82,20 @@ class _postFeed extends \IPS\Content\WidgetComment
*/
protected function buildWhere()
{
$class = static::$class;
$itemClass = $class::$itemClass;
$containerClass = $itemClass::$containerNodeClass;
$where = parent::buildWhere();
if ( !isset( $this->configuration['widget_feed_use_perms'] ) or $this->configuration['widget_feed_use_perms'] )
{
$where['container'][] = array( 'forums_forums.password IS NULL AND forums_forums.can_view_others=1' );
if ( $containerClass::hasPasswordForums() )
{
$where['container'][] = array( 'forums_forums.password IS NULL AND forums_forums.can_view_others=1' );
}
else
{
$where['container'][] = array( 'forums_forums.can_view_others=1' );
}
}
return $where;
}