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:
parent
a47e826815
commit
87d8369bb7
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ class BaseView(GenericView, I18NView):
|
|||
@Lazy
|
||||
def xeditable(self):
|
||||
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
|
||||
if ct.startswith('text/') and ct != 'text/rtf':
|
||||
return checkPermission('loops.ManageSite', self.context)
|
||||
|
|
Loading…
Add table
Reference in a new issue