# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbprivacy/cb.privacy.php +++ components/com_comprofiler/plugin/user/plug_cbprivacy/cb.privacy.php @@ -733,9 +733,10 @@ $result = true; if ( ( $_CB_framework->getUi() == 1 ) && ( $reason != 'register' ) ) { + $moderator = isModerator( $_CB_framework->myId() ); $privacyEditFE = $field->params->get( 'plug_cbprivacy_frontend_edit' ); if ( $privacyEditFE ) { - if ( ( $privacyEditFE == 1 ) || ( $privacyEditFE == 2 ) && ( $_CB_framework->myId() == $user->id ) ) { + if ( ( $privacyEditFE == 1 ) || ( ( $privacyEditFE == 2 ) && ( $_CB_framework->myId() == $user->id ) && ( ! $moderator ) ) ) { $result = false; } } @@ -743,7 +744,7 @@ $tab =& $this->_getTab( $field->tabid ); $privacyEditFE = $tab->params->get( 'plug_cbprivacy_frontend_edit' ); if ( $privacyEditFE ) { - if ( ( $privacyEditFE == 1 ) || ( $privacyEditFE == 2 ) && ( $_CB_framework->myId() == $user->id ) ) { + if ( ( $privacyEditFE == 1 ) || ( ( $privacyEditFE == 2 ) && ( $_CB_framework->myId() == $user->id ) && ( ! $moderator ) ) ) { $result = false; } }