Bug #3528 ยป 3528.patch
components/com_comprofiler/plugin/user/plug_cbprivacy/cb.privacy.php | ||
---|---|---|
|
||
$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;
|
||
}
|
||
}
|
||
... | ... | |
$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;
|
||
}
|
||
}
|