Jump to content


Photo

Nexus Feed Block - Permissions.


If you create a Nexus Feed Block for the latest packages, then there is no code in place (Nor any way to filter based on this) to exclude packages that are only available to certain groups. So, those who do not have access to a specific package will see it in the Feed, but not in the Store and thus get a No Permission page when trying to view the package in Nexus.

Status: Fixed
Version: 2.3.1
Fixed In: 2.3.2


1 Comments

Added this to the Nexus feed block. Note that the fix will be included in the next Nexus release (each block is handled by its own application now).

$myGroups    = array( $this->memberData['member_group_id'] );

        if ( $this->memberData['mgroup_others'] )
        {
            $myGroups    = array_merge( $myGroups, explode( ",", IPSText::cleanPermString( $this->memberData['mgroup_others'] ) ) );
        }

        $where[]    = $this->DB->buildWherePermission( $myGroups, 'p.p_member_groups', true );