Project

General

Profile

Bug #3245 » 3245_comprofiler.class.php.patch

Patch file - beat, 08 February 2012 16:46

View differences:

administrator/components/com_comprofiler/comprofiler.class.php (working copy)
$sql = 'SELECT * FROM #__comprofiler_tabs t'
. "\n WHERE t.enabled = 1";
if ( ! ( ( $_CB_framework->getUi() == 2 ) && $_CB_framework->acl->amIaSuperAdmin() ) ) {
$sql .= "\n AND t.viewaccesslevel IN (" . implode( ',', CBuser::getMyInstance()->getAuthorisedViewLevelsIds( false ) ) . ')';
if ( $reason != 'register' ) {
$sql .= "\n AND t.useraccessgroupid IN (" . implode(',', $_CB_framework->acl->get_groups_below_me( null, true ) ) . ")";
$sql .= "\n AND t.viewaccesslevel IN (" . implode( ',', CBuser::getMyInstance()->getAuthorisedViewLevelsIds( false ) ) . ')'
. "\n AND t.useraccessgroupid IN (" . implode(',', $_CB_framework->acl->get_groups_below_me( null, true ) ) . ")";
}
}
$sql .= "\n ORDER BY ";
(1-1/2)