Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -65,7 +65,7 @@ class _postFeed extends \IPS\Content\WidgetComment
|
||||
'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,
|
||||
@@ -88,13 +88,16 @@ class _postFeed extends \IPS\Content\WidgetComment
|
||||
$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');
|
||||
}
|
||||
}
|
||||
}
|
||||
return $where;
|
||||
|
||||
Reference in new issue
Block a user