diff --git a/core/ext/upload.ext.php b/core/ext/upload.ext.php index afa3df01..13e165a9 100644 --- a/core/ext/upload.ext.php +++ b/core/ext/upload.ext.php @@ -49,7 +49,7 @@ class Upload extends Extension { // do things {{{ private function can_upload() { global $config, $user; - return $config->get_bool("upload_anon") || ($user->id != $config->get_int("anon_id")); + return $config->get_bool("upload_anon") || !$user->is_anonymous(); } private function try_upload($file) {