Skip to content

Commit

Permalink
Fix content type lookup for determining whether or not files can be u…
Browse files Browse the repository at this point in the history
…ploaded.
  • Loading branch information
Eric Steele committed Jun 27, 2011
1 parent b3cfeae commit c716581
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plone/app/cmsui/addmenu.py
Expand Up @@ -140,8 +140,11 @@ def showUploadForm(self):
"""
# TODO How are we sure which types are uploadable?
# For now, just check on File/Image.

return True #('Image' in self.allowedTypes) or ('File' in self.allowedTypes)
uploadTypes = ['Image','File']
for a in self.allowedTypes:
if a['id'] in uploadTypes:
return True
return False

def getUploadUrl(self):
"""
Expand Down

0 comments on commit c716581

Please sign in to comment.