summaryrefslogtreecommitdiffstats
path: root/lib/class/access.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-29 06:14:46 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-29 06:14:46 +0000
commit2c337852cff31297d681fb87d3098cc3d9041101 (patch)
tree9853ce94387c4cc7756575598dfb1e2de44a8589 /lib/class/access.class.php
parentc1f2b35e2a18b0752746f5db5794cf18714bc71d (diff)
downloadampache-2c337852cff31297d681fb87d3098cc3d9041101.tar.gz
ampache-2c337852cff31297d681fb87d3098cc3d9041101.tar.bz2
ampache-2c337852cff31297d681fb87d3098cc3d9041101.zip
major corrections to reading of preferences and a few misc fixes which I have now forgotten
Diffstat (limited to 'lib/class/access.class.php')
-rw-r--r--lib/class/access.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/access.class.php b/lib/class/access.class.php
index 98fd0b39..bfc7beb9 100644
--- a/lib/class/access.class.php
+++ b/lib/class/access.class.php
@@ -145,7 +145,7 @@ class Access {
return false;
}
if (Config::get('allow_zip_download') AND $GLOBALS['user']->has_access(25)) {
- return $GLOBALS['user']->prefs['download'];
+ return Config::get('download');
}
break;
default:
@@ -237,7 +237,7 @@ class Access {
switch ($type) {
case 'localplay':
// Check their localplay_level
- if ($GLOBALS['user']->prefs['localplay_level'] >= $level) {
+ if (Config::get('localplay_level') >= $level) {
return true;
}
else {