From 22c9cdacf70ba8c2f76fdd31c1640659ab833017 Mon Sep 17 00:00:00 2001 From: shish Date: Fri, 4 May 2007 22:17:56 +0000 Subject: [PATCH] they have functions for that sort of thing... git-svn-id: file:///home/shish/svn/shimmie2/trunk@59 7f39781d-f577-437e-ae19-be835c7a54ca --- core/ext/upload.ext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {