From 48d54a97c88f8b1ec1c77e5f3ab642a6dc3c00e0 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 27 May 2009 03:35:58 +0000 Subject: [PATCH] "MDL-17474, repository plugin, add check_login to construct function" --- repository/googledocs/repository.class.php | 4 ---- repository/lib.php | 1 + repository/picasa/repository.class.php | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/repository/googledocs/repository.class.php b/repository/googledocs/repository.class.php index b8a2c2a009..76bd238a4c 100644 --- a/repository/googledocs/repository.class.php +++ b/repository/googledocs/repository.class.php @@ -22,10 +22,6 @@ class repository_googledocs extends repository { $gauth = new google_authsub(false, $googletoken); // will throw exception if fails google_docs::set_sesskey($gauth->get_sessiontoken(), $USER->id); } - - # fixme - we are not checking login before all functions in the repo api.. eg search - # MDL-17474 - $this->check_login(); } public function check_login() { diff --git a/repository/lib.php b/repository/lib.php index f425866ad3..ae4096f79d 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -1099,6 +1099,7 @@ abstract class repository { $this->options[$n] = $v; } $this->name = $this->get_name(); + $this->check_login(); $this->super_called = true; } diff --git a/repository/picasa/repository.class.php b/repository/picasa/repository.class.php index 7a88d87eca..7be37a3c06 100644 --- a/repository/picasa/repository.class.php +++ b/repository/picasa/repository.class.php @@ -22,10 +22,6 @@ class repository_picasa extends repository { $gauth = new google_authsub(false, $googletoken); // will throw exception if fails google_picasa::set_sesskey($gauth->get_sessiontoken(), $USER->id); } - - # fixme - we are not checking login before all functions in the repo api.. eg search - # MDL-17474 - $this->check_login(); } public function check_login() { -- 2.39.5