diff options
author | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-13 08:11:09 +0000 |
---|---|---|
committer | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-13 08:11:09 +0000 |
commit | 4b5756ba9d8ee9e83c1ba4624b461b4746e49e82 (patch) | |
tree | 2e46772da9d25197fd847b273ca1f9b882ad3e34 /lib/class/access.class.php | |
parent | 93f4a26ab07207e1f9a8e716a82c5d8812d5344c (diff) | |
download | ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.gz ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.bz2 ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.zip |
Miscellaneous cleanup.
Diffstat (limited to 'lib/class/access.class.php')
-rw-r--r-- | lib/class/access.class.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/class/access.class.php b/lib/class/access.class.php index 7f986fef..93bfbfd6 100644 --- a/lib/class/access.class.php +++ b/lib/class/access.class.php @@ -312,13 +312,15 @@ class Access { /** * check_access - * This is the global 'has_access' function it can check for any 'type' of object - * everything uses the global 0,5,25,50,75,100 stuff. GLOBALS['user'] is always used + * This is the global 'has_access' function it can check for any 'type' + * of object. + * Everything uses the global 0,5,25,50,75,100 stuff. GLOBALS['user'] is + * always used. */ public static function check($type,$level) { if (Config::get('demo_mode')) { return true; } - if (INSTALL == '1') { return true; } + if (defined('INSTALL')) { return true; } $level = intval($level); |