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:
parent
d5ebcb89e8
commit
22c9cdacf7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue