they have functions for that sort of thing...

git-svn-id: file:///home/shish/svn/shimmie2/trunk@59 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-05-04 22:17:56 +00:00
parent d5ebcb89e8
commit 22c9cdacf7

View file

@ -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) {