summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/play/index.php b/play/index.php
index 38e6bcbf..ff1be7e0 100644
--- a/play/index.php
+++ b/play/index.php
@@ -239,12 +239,12 @@ if (Config::get('track_user_ip')) {
$user->insert_ip_history();
}
-/* If access control is on and they aren't local, downsample! */
-if (Config::get('access_control') AND Config::get('downsample_remote')) {
- if (Access::check_network('network',$_SERVER['REMOTE_ADDR'],$GLOBALS['user']->id,'25')) {
+// If we've got downsample remote enabled
+if (Config::get('downsample_remote')) {
+ if (!Access::check_network('network',$_SERVER['REMOTE_ADDR'],$GLOBALS['user']->id,'25')) {
$not_local = true;
}
-} // if access_control
+} // if downsample remote is enabled
// If they are downsampling, or if the song is not a native stream or it's non-local
if (($GLOBALS['user']->prefs['transcode'] == 'always' || !$song->native_stream() || $not_local) && $GLOBALS['user']->prefs['transcode'] != 'never') {