include x-pdf in list of 'read-only' resources

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4186 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2011-02-12 16:45:37 +00:00
parent a47e826815
commit 87d8369bb7

View file

@ -634,7 +634,7 @@ class BaseView(GenericView, I18NView):
@Lazy @Lazy
def xeditable(self): def xeditable(self):
ct = getattr(self.context, 'contentType', '') ct = getattr(self.context, 'contentType', '')
if not ct or ct == 'application/pdf': if not ct or ct in ('application/pdf', 'application/x-pdf'):
return False return False
if ct.startswith('text/') and ct != 'text/rtf': if ct.startswith('text/') and ct != 'text/rtf':
return checkPermission('loops.ManageSite', self.context) return checkPermission('loops.ManageSite', self.context)