Project

General

Profile

Bug #2037 ยป 2037.patch

krileon, 09 November 2010 20:08

View differences:

administrator/components/com_comprofiler/library/cb/cb.acl.php
}
function acl_check( $var_1 = null, $var_2 = null, $var_3 = null, $var_4 = null, $var_5 = null, $var_6 = null, $var_7 = null, $var_8 = null ) {
global $_CB_framework;
if ( checkJversion() == 2 ) {
if ( is_integer( $var_4 ) ) {
$user_id = $var_4;
} elseif ( $var_4 == $_CB_framework->myUserType() ) {
$user_id = $_CB_framework->myId();
}
if ( isset( $user_id ) ) {
$return = $this->_acl->check( $user_id, $var_2, $var_1 );
$return = JFactory::getUser()->authorise( $var_2, $var_1 );
} else {
$return = false;
$return = $this->_acl->acl_check( $var_1, $var_2, $var_3, $var_4, $var_5, $var_6, $var_7, $var_8 );
}
} else {
$return = $this->_acl->acl_check( $var_1, $var_2, $var_3, $var_4, $var_5, $var_6, $var_7, $var_8 );
}
return $return;
}
    (1-1/1)