Actions
Bug #4193
closedModerator forced tab privacy settings not taking affect
Description
The IF statement is off for checking display privacy. It checks for user controlled privacy or moderator controlled privacy, but doesn't take into account if we're displaying a tab or saving a tab. This does not seam to affect fields.
Updated by krileon over 11 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Quickfix as follows.
IN: /components/com_comprofiler/plugin/user/plug_cbprivacy/tab.cbprivacy.php
ON: Line 130
FROM:if ( ( $display 1 ) || ( ( $display 2 ) && isModerator( $myId ) ) ) {
TO:if ( ( $isDisplay && ( ( $display 1 ) || ( $display 2 ) ) ) || ( $isSave && ( $display 2 ) && isModerator( $myId ) ) || ( $isSave && ( $display 1 ) ) ) {
Actions