CauseFX 4 лет назад
Родитель
Сommit
acb4a665be
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      api/homepage/deluge.php

+ 1 - 2
api/homepage/deluge.php

@@ -66,8 +66,7 @@ trait DelugeHomepageItem
 	
 	public function testConnectionDeluge()
 	{
-		if (empty($this->config['delugeURL'])) {
-			$this->setAPIResponse('error', 'Deluge URL is not defined', 422);
+		if (!$this->homepageItemPermissions($this->delugeHomepagePermissions('main'), true)) {
 			return false;
 		}
 		try {