summaryrefslogtreecommitdiffstats
path: root/lib/class/user.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-13 00:39:40 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-13 00:39:40 +0000
commita4be3297d541560e1bc4291d366808fca517d49e (patch)
treef2dd6cc96d2e28042845d7b532d19cc3c1295e9e /lib/class/user.class.php
parent7049a9976a25e95cb1ee68a84a853211ccc3db8a (diff)
downloadampache-a4be3297d541560e1bc4291d366808fca517d49e.tar.gz
ampache-a4be3297d541560e1bc4291d366808fca517d49e.tar.bz2
ampache-a4be3297d541560e1bc4291d366808fca517d49e.zip
fixed localplay buttons with use_auth disabled and tweaked access control mojo to prevent login in addition to the normal prevention of streaming
Diffstat (limited to 'lib/class/user.class.php')
-rw-r--r--lib/class/user.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php
index 5e28d2b5..09f1c3dc 100644
--- a/lib/class/user.class.php
+++ b/lib/class/user.class.php
@@ -266,6 +266,8 @@ class User {
$username = $this->username;
}
+ if (!conf('use_auth')) { $username = '-1'; }
+
$value = sql_escape($value);
$sql = "UPDATE user_preference SET value='$value' WHERE user='$username' AND preference='$preference_id'";