← All changes
|
visualcomposer/Modules/Hub/DownloadController.php
+4
-0
45.2-beta.2
→
45.16.4
View file →
| @@ -116,8 +116,12 @@ | ||
| 116 | 116 | * @return array |
| 117 | 117 | */ |
| 118 | 118 | protected function sendAgreeHubTerms(Options $optionsHelper) |
| 119 | 119 | { |
| 120 | + if (!vchelper('HubDownload')->hasAccess()) { | |
| 121 | + return ['status' => false]; | |
| 122 | + } | |
| 123 | + | |
| 120 | 124 | $optionsHelper->set('agreeHubTerms', time()); |
| 121 | 125 | $optionsHelper->deleteTransient('lastBundleUpdate'); |
| 122 | 126 | |
| 123 | 127 | return ['status' => true]; |