public function can_access() {
        if ($this->canaccess === null) {
            $this->canaccess = can_access_course($this->record);
        }
        return $this->canaccess;
    }
public function can_access() {
        if ($this->canaccess === null) {
            $this->canaccess = can_access_course($this->record);
        }
        return $this->canaccess;
    }
public function can_access ( ) { if ( $ this -> canaccess === null ) { $ this -> canaccess = can_access_course ( $ this -> record ) ; } return $ this -> canaccess ; }
Returns true if the current user can access this course.
@return bool
Returns true if the current user can access this course .