Просмотр исходного кода

added check if fallback user request - will show on all users tho

CauseFX 5 лет назад
Родитель
Сommit
72e3697e8b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/homepage/ombi.php

+ 1 - 1
api/homepage/ombi.php

@@ -260,7 +260,7 @@ trait OmbiHomepageItem
 					$movie = json_decode($movie->body, true);
 					//$movie = array_reverse($movie);
 					foreach ($movie as $key => $value) {
-						$proceed = (($this->config['ombiLimitUser']) && strtolower($this->user['username']) == strtolower($value['requestedUser']['userName'])) || (!$this->config['ombiLimitUser']) || $this->qualifyRequest(1);
+						$proceed = (($this->config['ombiLimitUser']) && strtolower($this->user['username']) == strtolower($value['requestedUser']['userName'])) || (strtolower($value['requestedUser']['userName']) == strtolower($this->config['ombiFallbackUser'])) || (!$this->config['ombiLimitUser']) || $this->qualifyRequest(1);
 						if ($proceed) {
 							$api['count']['movie']++;
 							$requests[] = array(