upload_anon bool -> create_image perm

This commit is contained in:
Shish
2012-03-19 12:59:02 +00:00
parent f99c186ee5
commit bca3dd919d
4 changed files with 8 additions and 22 deletions

View File

@ -112,7 +112,7 @@ class DanbooruApi extends Extension {
// Now we check if a file was uploaded or a url was provided to transload
// Much of this code is borrowed from /ext/upload
if($config->get_bool("upload_anon") || !$user->is_anonymous())
if($user->can("create_image"))
{
$file = null;
$filename = "";