summaryrefslogtreecommitdiffstats
path: root/lib/class/access.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/access.class.php')
-rw-r--r--lib/class/access.class.php8
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);