Bug #3245 » 3245_comprofiler.class.php.patch
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 ";
|