Project

General

Profile

Actions

Bug #4193

closed

Moderator forced tab privacy settings not taking affect

Added by krileon about 11 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
29 August 2013
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

Updated by krileon about 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 #2

Updated by krileon about 11 years ago

  • Target version set to 4.0.0
Actions #4

Updated by krileon about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF