discourse/discourse — pull request #1723 by vikhyat (2013-12-06 06:04:50+00:00)
Title: Don't show uploading forms if the relevant site settings are disabled

This removes the upload file option in the composer if max_attachment_size_kb is 0, and doesn't show the upload avatar modal if allow_uploaded_avatars is false.