some adjustments on permissions for editing and showing certain portlets

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1624 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-03-07 15:21:17 +00:00
parent 89ffe21b86
commit 6c03c732f4

View file

@ -245,8 +245,8 @@ class BaseView(GenericView):
@Lazy
def xeditable(self):
ct = getattr(self.context, 'contentType', 'application/pdf')
if ct == 'application/pdf':
ct = getattr(self.context, 'contentType', '')
if not ct or ct == 'application/pdf':
return False
if ct.startswith('text/'):
return self.request.principal.id == 'rootadmin'