diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-06 15:45:03 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-06 15:45:03 -0700 |
| commit | 097ef934c6fe188cc368905ee72b7cca6ad2f755 (patch) | |
| tree | 75e92a4edf717f2a6828a802f45485af06af3c71 /modules/rest/helpers/rest_installer.php | |
| parent | c4d85721fc0a3b9aad45451fb917d6e23b804c05 (diff) | |
| parent | aeee88031fed7029c3320800d237b69993e8b6d4 (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/rest/helpers/rest_installer.php')
| -rw-r--r-- | modules/rest/helpers/rest_installer.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/rest/helpers/rest_installer.php b/modules/rest/helpers/rest_installer.php index aeb9573e..c2694a29 100644 --- a/modules/rest/helpers/rest_installer.php +++ b/modules/rest/helpers/rest_installer.php @@ -28,7 +28,8 @@ class rest_installer { UNIQUE KEY(`access_key`), UNIQUE KEY(`user_id`)) DEFAULT CHARSET=utf8;"); - module::set_version("rest", 2); + module::set_var("rest", "allow_guest_access", false); + module::set_version("rest", 3); } static function upgrade($version) { @@ -37,6 +38,11 @@ class rest_installer { $db->query("RENAME TABLE {user_access_tokens} TO {user_access_keys}"); module::set_version("rest", $version = 2); } + + if ($version == 2) { + module::set_var("rest", "allow_guest_access", false); + module::set_version("rest", $version = 3); + } } static function uninstall() { |
