diff --git a/inc/DAViCalSession.php b/inc/DAViCalSession.php index b9a38616..f3f6453a 100644 --- a/inc/DAViCalSession.php +++ b/inc/DAViCalSession.php @@ -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. *