Remove reference to relationships, which are so passe now.

This commit is contained in:
Andrew McMillan 2010-02-18 13:28:34 +13:00
parent e932751491
commit 33a1a78490

View File

@ -67,7 +67,6 @@ class DAViCalSession extends Session
function AssignSessionDetails( $u ) {
parent::AssignSessionDetails( $u );
$this->GetRoles();
$this->GetRelationships();
if ( function_exists('awl_set_locale') && isset($this->locale) && $this->locale != '' ) {
awl_set_locale($this->locale);
}
@ -89,22 +88,6 @@ class DAViCalSession extends Session
}
/**
* Method used to get the user's relationships
*/
function GetRelationships () {
$this->relationships = array();
$sql = 'SELECT r.rt_id, rt_name, r.confers FROM relationship r JOIN relationship_type USING (rt_id) WHERE from_user = '.$this->user_no;
$qry = new PgQuery( $sql );
if ( $qry->Exec('DAViCalSession') && $qry->rows > 0 ) {
while( $relationship = $qry->Fetch() ) {
$this->relationships[$relationship->rt_id] = $relationship;
dbg_error_log( 'DAViCalSession', 'Relationships: %d - %s - %d - %s - %s -', $relationship->rt_id, $relationship->rt_name, $relationship->confers );
}
}
}
/**
* Checks that this user is logged in, and presents a login screen if they aren't.
*