Version 4.7.0

This commit is contained in:
Neo committed 2025-12-19 16:00:35 -08:00
1 parent 517a5e1f70
commit 8ba7d43898
1933 files changed
+65613 -11332

No files matched your search

+10 -7
View File
@@ -59,7 +59,7 @@ class _topicFeed extends \IPS\Content\Widget
'zeroVal' => 'all_public',
'permissionCheck' => function ( $forum )
{
return $forum->can('view') and $forum->sub_can_post and !$forum->redirect_url and $forum->can_view_others;
return $forum->sub_can_post and !$forum->redirect_url and $forum->can_view_others;
},
'multiple' => true,
'forceOwner' => false,
@@ -81,13 +81,16 @@ class _topicFeed extends \IPS\Content\Widget
$where = parent::buildWhere();
if ( !isset( $this->configuration['widget_feed_use_perms'] ) or $this->configuration['widget_feed_use_perms'] )
{
if ( $containerClass::hasPasswordForums() )
if ( $customNodes = $containerClass::customPermissionNodes() )
{
$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' );
if ( \count( $customNodes['password'] ) )
{
$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');
}
}
}